* include/freetype/internal/ftobjs.h, src/base/ftobjs.c,
src/bdf/bdfdrivr.c, src/cff/cffgload.c, src/cid/cidgload.c, src/pcf/pcfdrivr.c, src/type1/t1gload.c, src/winfonts/winfnt.c: s/ft_fake_vertical_metrics/ft_synthesize_vertical_metrics/. * docs/CHANGES: Mention that vertical metrics are synthesized for fonts not having this info.
This commit is contained in:
parent
1723dcc261
commit
ea1e8d3a53
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2006-01-15 Chia-I Wu <b90201047@ntu.edu.tw>
|
||||||
|
|
||||||
|
* include/freetype/internal/ftobjs.h, src/base/ftobjs.c,
|
||||||
|
src/bdf/bdfdrivr.c, src/cff/cffgload.c, src/cid/cidgload.c,
|
||||||
|
src/pcf/pcfdrivr.c, src/type1/t1gload.c, src/winfonts/winfnt.c:
|
||||||
|
s/ft_fake_vertical_metrics/ft_synthesize_vertical_metrics/.
|
||||||
|
|
||||||
|
* docs/CHANGES: Mention that vertical metrics are synthesized for
|
||||||
|
fonts not having this info.
|
||||||
|
|
||||||
2006-01-15 Chia-I Wu <b90201047@ntu.edu.tw>
|
2006-01-15 Chia-I Wu <b90201047@ntu.edu.tw>
|
||||||
|
|
||||||
* include/freetype/internal/ftobjs.h (ft_fake_vertical_metrics),
|
* include/freetype/internal/ftobjs.h (ft_fake_vertical_metrics),
|
||||||
|
|
|
@ -98,6 +98,11 @@ LATEST CHANGES BETWEEN 2.2.0 and 2.1.10
|
||||||
- A new function `FT_Module_Get_Flags' (declared in `FT_MODULE_H')
|
- A new function `FT_Module_Get_Flags' (declared in `FT_MODULE_H')
|
||||||
can be used to get the module flags for a given module.
|
can be used to get the module flags for a given module.
|
||||||
|
|
||||||
|
- Vertical metrics of glyphs are synthesized if the font does not
|
||||||
|
provide such information. You can tell whether the metrics are
|
||||||
|
synthesized or not by checking the FT_FACE_FLAG_VERTICAL flag of
|
||||||
|
the face.
|
||||||
|
|
||||||
- The demo programs `ftview' and `ftstring' have been rewritten
|
- The demo programs `ftview' and `ftstring' have been rewritten
|
||||||
for better readability.
|
for better readability.
|
||||||
|
|
||||||
|
|
|
@ -462,11 +462,11 @@ FT_BEGIN_HEADER
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use the horizontal metrics to fake the vertical metrics.
|
* Use the horizontal metrics to synthesize the vertical metrics.
|
||||||
* If `advance' is zero, it is also faked.
|
* If `advance' is zero, it is also synthesized.
|
||||||
*/
|
*/
|
||||||
FT_BASE( void )
|
FT_BASE( void )
|
||||||
ft_fake_vertical_metrics( FT_Glyph_Metrics* metrics,
|
ft_synthesize_vertical_metrics( FT_Glyph_Metrics* metrics,
|
||||||
FT_Pos advance );
|
FT_Pos advance );
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2042,7 +2042,7 @@
|
||||||
/* documentation is in ftobjs.h */
|
/* documentation is in ftobjs.h */
|
||||||
|
|
||||||
FT_BASE_DEF( void )
|
FT_BASE_DEF( void )
|
||||||
ft_fake_vertical_metrics( FT_Glyph_Metrics* metrics,
|
ft_synthesize_vertical_metrics( FT_Glyph_Metrics* metrics,
|
||||||
FT_Pos advance )
|
FT_Pos advance )
|
||||||
{
|
{
|
||||||
/* the factor 1.2 is a heuristical value */
|
/* the factor 1.2 is a heuristical value */
|
||||||
|
|
|
@ -712,7 +712,7 @@ THE SOFTWARE.
|
||||||
* XXX DWIDTH1 and VVECTOR should be parsed and
|
* XXX DWIDTH1 and VVECTOR should be parsed and
|
||||||
* used here, provided such fonts do exist.
|
* used here, provided such fonts do exist.
|
||||||
*/
|
*/
|
||||||
ft_fake_vertical_metrics( &slot->metrics,
|
ft_synthesize_vertical_metrics( &slot->metrics,
|
||||||
face->bdffont->bbx.height << 6 );
|
face->bdffont->bbx.height << 6 );
|
||||||
|
|
||||||
Exit:
|
Exit:
|
||||||
|
|
|
@ -2699,7 +2699,7 @@
|
||||||
if ( has_vertical_info )
|
if ( has_vertical_info )
|
||||||
metrics->vertBearingX = -metrics->width / 2;
|
metrics->vertBearingX = -metrics->width / 2;
|
||||||
else
|
else
|
||||||
ft_fake_vertical_metrics( metrics,
|
ft_synthesize_vertical_metrics( metrics,
|
||||||
metrics->vertAdvance );
|
metrics->vertAdvance );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -401,7 +401,7 @@
|
||||||
metrics->horiBearingY = cbox.yMax;
|
metrics->horiBearingY = cbox.yMax;
|
||||||
|
|
||||||
/* make up vertical ones */
|
/* make up vertical ones */
|
||||||
ft_fake_vertical_metrics( metrics,
|
ft_synthesize_vertical_metrics( metrics,
|
||||||
metrics->vertAdvance );
|
metrics->vertAdvance );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -531,7 +531,7 @@ THE SOFTWARE.
|
||||||
metric->leftSideBearing ) << 6;
|
metric->leftSideBearing ) << 6;
|
||||||
slot->metrics.height = bitmap->rows << 6;
|
slot->metrics.height = bitmap->rows << 6;
|
||||||
|
|
||||||
ft_fake_vertical_metrics( &slot->metrics,
|
ft_synthesize_vertical_metrics( &slot->metrics,
|
||||||
( face->accel.fontAscent +
|
( face->accel.fontAscent +
|
||||||
face->accel.fontDescent ) << 6 );
|
face->accel.fontDescent ) << 6 );
|
||||||
|
|
||||||
|
|
|
@ -359,7 +359,7 @@
|
||||||
metrics->horiBearingY = cbox.yMax;
|
metrics->horiBearingY = cbox.yMax;
|
||||||
|
|
||||||
/* make up vertical ones */
|
/* make up vertical ones */
|
||||||
ft_fake_vertical_metrics( metrics,
|
ft_synthesize_vertical_metrics( metrics,
|
||||||
metrics->vertAdvance );
|
metrics->vertAdvance );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -724,7 +724,7 @@
|
||||||
slot->metrics.horiBearingX = 0;
|
slot->metrics.horiBearingX = 0;
|
||||||
slot->metrics.horiBearingY = slot->bitmap_top << 6;
|
slot->metrics.horiBearingY = slot->bitmap_top << 6;
|
||||||
|
|
||||||
ft_fake_vertical_metrics( &slot->metrics,
|
ft_synthesize_vertical_metrics( &slot->metrics,
|
||||||
bitmap->rows << 6 );
|
bitmap->rows << 6 );
|
||||||
|
|
||||||
Exit:
|
Exit:
|
||||||
|
|
Loading…
Reference in New Issue