Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FreeType
FreeType
Commits
a3dca278
Commit
a3dca278
authored
Sep 15, 2000
by
David Turner
Browse files
small bug-fix, the linearHoriBearing value was not
loaded not computed correctly
parent
4e0cebbd
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/cff/t2gload.c
View file @
a3dca278
...
...
@@ -1970,13 +1970,16 @@
/* copy the _unscaled_ advance width */
metrics
->
horiAdvance
=
decoder
.
glyph_width
;
metrics
->
horiAdvance
=
decoder
.
glyph_width
;
glyph
->
root
.
linearHoriAdvance
=
decoder
.
glyph_width
;
/* make up vertical metrics */
metrics
->
vertBearingX
=
0
;
metrics
->
vertBearingY
=
0
;
metrics
->
vertAdvance
=
0
;
glyph
->
root
.
linearVertAdvance
=
0
;
glyph
->
root
.
format
=
ft_glyph_format_outline
;
glyph
->
root
.
outline
.
flags
=
0
;
...
...
src/cid/cidgload.c
View file @
a3dca278
...
...
@@ -274,13 +274,15 @@
/* copy the _unscaled_ advance width */
metrics
->
horiAdvance
=
decoder
.
builder
.
advance
.
x
;
metrics
->
horiAdvance
=
decoder
.
builder
.
advance
.
x
;
glyph
->
root
.
linearHoriAdvance
=
decoder
.
builder
.
advance
.
x
;
/* make up vertical metrics */
metrics
->
vertBearingX
=
0
;
metrics
->
vertBearingY
=
0
;
metrics
->
vertAdvance
=
0
;
glyph
->
root
.
linearVertAdvance
=
0
;
glyph
->
root
.
format
=
ft_glyph_format_outline
;
if
(
size
&&
size
->
root
.
metrics
.
y_ppem
<
24
)
...
...
src/type1z/z1gload.c
View file @
a3dca278
...
...
@@ -168,7 +168,7 @@
glyph
->
root
.
outline
.
n_points
=
0
;
glyph
->
root
.
outline
.
n_contours
=
0
;
hinting
=
(
load_flags
&
FT_LOAD_NO_SCALE
)
==
0
&&
(
load_flags
&
FT_LOAD_NO_HINTING
)
==
0
;
...
...
@@ -224,13 +224,16 @@
/* copy the _unscaled_ advance width */
metrics
->
horiAdvance
=
decoder
.
builder
.
advance
.
x
;
metrics
->
horiAdvance
=
decoder
.
builder
.
advance
.
x
;
glyph
->
root
.
linearHoriAdvance
=
decoder
.
builder
.
advance
.
x
;
/* make up vertical metrics */
metrics
->
vertBearingX
=
0
;
metrics
->
vertBearingY
=
0
;
metrics
->
vertAdvance
=
0
;
glyph
->
root
.
linearVertAdvance
=
0
;
glyph
->
root
.
format
=
ft_glyph_format_outline
;
if
(
size
&&
size
->
root
.
metrics
.
y_ppem
<
24
)
...
...
Write
Preview
Supports
Markdown
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