mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-09 02:48:04 +02:00
Remove superfluous outline zeroing.
This is already done by `ft_glyphslot_clear`. * src/cff/cffgload.c (cff_slot_load): Do not zero outline fields. * src/cid/cidgload.c (cid_slot_load_glyph: Ditto. * src/pfr/pfrobjs.c (pfr_slot_load): Ditto. * src/truetype/ttgload.c (load_sbit_image): Ditto. * src/type1/t1gload.c (T1_Load_Glyph): Ditto.
This commit is contained in:
parent
10b3b14da2
commit
64f8b7fbd0
5 changed files with 0 additions and 20 deletions
|
|
@ -284,9 +284,6 @@
|
|||
FT_Short dummy;
|
||||
|
||||
|
||||
glyph->root.outline.n_points = 0;
|
||||
glyph->root.outline.n_contours = 0;
|
||||
|
||||
glyph->root.metrics.width = (FT_Pos)metrics.width * 64;
|
||||
glyph->root.metrics.height = (FT_Pos)metrics.height * 64;
|
||||
|
||||
|
|
@ -457,9 +454,6 @@
|
|||
font_offset = cff->top_font.font_dict.font_offset;
|
||||
}
|
||||
|
||||
glyph->root.outline.n_points = 0;
|
||||
glyph->root.outline.n_contours = 0;
|
||||
|
||||
/* top-level code ensures that FT_LOAD_NO_HINTING is set */
|
||||
/* if FT_LOAD_NO_SCALE is active */
|
||||
hinting = FT_BOOL( ( load_flags & FT_LOAD_NO_HINTING ) == 0 );
|
||||
|
|
|
|||
|
|
@ -452,9 +452,6 @@
|
|||
glyph->x_scale = cidsize->metrics.x_scale;
|
||||
glyph->y_scale = cidsize->metrics.y_scale;
|
||||
|
||||
cidglyph->outline.n_points = 0;
|
||||
cidglyph->outline.n_contours = 0;
|
||||
|
||||
hinting = FT_BOOL( ( load_flags & FT_LOAD_NO_SCALE ) == 0 &&
|
||||
( load_flags & FT_LOAD_NO_HINTING ) == 0 );
|
||||
scaled = FT_BOOL( ( load_flags & FT_LOAD_NO_SCALE ) == 0 );
|
||||
|
|
|
|||
|
|
@ -357,8 +357,6 @@
|
|||
|
||||
gchar = face->phy_font.chars + gindex;
|
||||
pfrslot->format = FT_GLYPH_FORMAT_OUTLINE;
|
||||
outline->n_points = 0;
|
||||
outline->n_contours = 0;
|
||||
gps_offset = face->header.gps_section_offset;
|
||||
|
||||
/* load the glyph outline (FT_LOAD_NO_RECURSE isn't supported) */
|
||||
|
|
|
|||
|
|
@ -2122,9 +2122,6 @@
|
|||
&sbit_metrics );
|
||||
if ( !error )
|
||||
{
|
||||
glyph->outline.n_points = 0;
|
||||
glyph->outline.n_contours = 0;
|
||||
|
||||
glyph->metrics.width = (FT_Pos)sbit_metrics.width * 64;
|
||||
glyph->metrics.height = (FT_Pos)sbit_metrics.height * 64;
|
||||
|
||||
|
|
@ -2174,9 +2171,6 @@
|
|||
&top_bearing,
|
||||
&advance_height );
|
||||
|
||||
glyph->outline.n_points = 0;
|
||||
glyph->outline.n_contours = 0;
|
||||
|
||||
glyph->metrics.width = 0;
|
||||
glyph->metrics.height = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -398,9 +398,6 @@
|
|||
glyph->y_scale = 0x10000L;
|
||||
}
|
||||
|
||||
t1glyph->outline.n_points = 0;
|
||||
t1glyph->outline.n_contours = 0;
|
||||
|
||||
hinting = FT_BOOL( !( load_flags & FT_LOAD_NO_SCALE ) &&
|
||||
!( load_flags & FT_LOAD_NO_HINTING ) );
|
||||
scaled = FT_BOOL( !( load_flags & FT_LOAD_NO_SCALE ) );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue