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
43a2f656
Commit
43a2f656
authored
Jul 05, 2000
by
David Turner
Browse files
fixed a few bugs, cleaned up some code
parent
bd5ae400
Changes
3
Hide whitespace changes
Inline
Side-by-side
demos/src/ttdebug.c
View file @
43a2f656
...
...
@@ -806,6 +806,18 @@ TT_CodeRange_Tag debug_coderange = tt_coderange_glyph;
}
static
int
old_tag_to_new
(
int
tag
)
{
int
result
=
tag
&
1
;
if
(
tag
&
FT_Curve_Tag_Touch_X
)
result
|=
2
;
if
(
tag
&
FT_Curve_Tag_Touch_Y
)
result
|=
4
;
return
result
;
}
static
FT_Error
RunIns
(
TT_ExecContext
exc
)
{
...
...
@@ -1059,7 +1071,7 @@ TT_CodeRange_Tag debug_coderange = tt_coderange_glyph;
printf
(
"%02hx "
,
A
);
if
(
diff
&
16
)
temp
=
"(%01hx)"
;
else
temp
=
" %01hx "
;
printf
(
temp
,
save
.
tags
[
A
]
&
7
);
printf
(
temp
,
old_tag_to_new
(
save
.
tags
[
A
]
)
);
if
(
diff
&
1
)
temp
=
"(%08lx)"
;
else
temp
=
" %08lx "
;
printf
(
temp
,
save
.
org
[
A
].
x
);
...
...
@@ -1078,7 +1090,7 @@ TT_CodeRange_Tag debug_coderange = tt_coderange_glyph;
printf
(
"%02hx "
,
A
);
if
(
diff
&
16
)
temp
=
"[%01hx]"
;
else
temp
=
" %01hx "
;
printf
(
temp
,
pts
.
tags
[
A
]
&
7
);
printf
(
temp
,
old_tag_to_new
(
pts
.
tags
[
A
]
)
);
if
(
diff
&
1
)
temp
=
"[%08lx]"
;
else
temp
=
" %08lx "
;
printf
(
temp
,
pts
.
org
[
A
].
x
);
...
...
@@ -1239,7 +1251,7 @@ int glyph_size;
glyph
=
(
TT_GlyphSlot
)
face
->
root
.
glyph
;
/* Now load glyph */
error
=
FT_Load_Glyph
(
(
FT_Face
)
face
,
glyph_index
,
FT_LOAD_
DEFAULT
);
error
=
FT_Load_Glyph
(
(
FT_Face
)
face
,
glyph_index
,
FT_LOAD_
NO_BITMAP
);
if
(
error
)
Panic
(
"could not load glyph"
);
}
...
...
src/truetype/ttgload.c
View file @
43a2f656
...
...
@@ -980,7 +980,6 @@
{
FT_UShort
n_ins
;
TT_ExecContext
exec
=
loader
->
exec
;
FT_UInt
n_points
=
loader
->
base
.
n_points
;
TT_GlyphZone
*
pts
;
FT_Vector
*
pp1
;
...
...
@@ -1023,7 +1022,7 @@
pts
=
&
exec
->
pts
;
pts
->
n_points
=
num_points
+
2
;
pts
->
n_contours
=
num
_contours
;
pts
->
n_contours
=
gloader
->
base
.
outline
.
n
_contours
;
/* add phantom points */
pp1
=
pts
->
cur
+
num_points
;
...
...
@@ -1044,11 +1043,11 @@
FT_UInt
k
;
for
(
k
=
0
;
k
<
n_points
;
k
++
)
for
(
k
=
0
;
k
<
n
um
_points
;
k
++
)
pts
->
tags
[
k
]
&=
FT_Curve_Tag_On
;
}
cur_to_org
(
n_points
,
pts
);
cur_to_org
(
n
um
_points
+
2
,
pts
);
/* now consider hinting */
if
(
IS_HINTED
(
loader
->
load_flags
)
&&
n_ins
>
0
)
...
...
src/truetype/ttinterp.c
View file @
43a2f656
...
...
@@ -6176,8 +6176,8 @@
else
{
mask
=
FT_Curve_Tag_Touch_Y
;
V
.
orgs
=
(
FT_Vector
*
)(
(
FT_
F26Dot6
*
)
CUR
.
pts
.
org
+
1
);
V
.
curs
=
(
FT_Vector
*
)(
(
FT_
F26Dot6
*
)
CUR
.
pts
.
cur
+
1
);
V
.
orgs
=
(
FT_Vector
*
)(
(
FT_
Pos
*
)
CUR
.
pts
.
org
+
1
);
V
.
curs
=
(
FT_Vector
*
)(
(
FT_
Pos
*
)
CUR
.
pts
.
cur
+
1
);
}
contour
=
0
;
...
...
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