Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
678a594f
Commit
678a594f
authored
Dec 17, 2023
by
Po Lu
Browse files
* src/sfnt.h (sfnt_coerce_fixed): New macro.
parent
8e10aad3
Pipeline
#27527
failed with stages
in 44 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/sfnt.h
src/sfnt.h
+2
-1
No files found.
src/sfnt.h
View file @
678a594f
...
...
@@ -123,6 +123,7 @@ typedef int16_t sfnt_fword;
typedef
uint16_t
sfnt_ufword
;
#define sfnt_coerce_fixed(fixed) ((sfnt_fixed) (fixed) / 65535.0)
#define sfnt_fixed_float(fixed) ((sfnt_fixed) (fixed) / 65535.0f)
typedef
unsigned
int
sfnt_glyph
;
typedef
unsigned
int
sfnt_char
;
...
...
@@ -778,7 +779,7 @@ struct sfnt_edge
/* X position, top and bottom of edges. */
sfnt_fixed
x
,
top
,
bottom
;
/* Amount to move X by upon each change of Y. */
/* Amount to move X by upon each change of Y
, and vice versa
. */
sfnt_fixed
step_x
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment