forked from pool/freetype2
* A new rendering module has been added to create 8-bit Signed Distance Field (SDF) bitmaps for both outline and bitmap glyphs. * A new, experimental API is now available for surfacing properties of 'COLR' v1 color fonts. * A new function `FT_Get_Transform` returns the values set by FT_Set_Transform. * The legacy Type 1 and CFF engines are further demoted due to lack of CFF2 charstring support. * The experimental 'warp' mode (AF_CONFIG_OPTION_USE_WARPER) for the auto-hinter has been removed. * The smooth rasterizer performance has been improved by >10%. * PCF bitmap fonts compressed with LZW (these are usually files with the extension .pcf.Z) are now handled correctly. - Update to version 2.11.0 * A new demo program `ftsdf` is available to display Signed Distance Fields of glyphs. * The `ftlint` demo program has been extended to do more testing of its input. * The `ttdebug` demo program didn't show changed point coordinates (bug introduced in version 2.10.3). * It is now possible to adjust the axis increment for variable fonts in the `ftmulti` demo program. * It is now possible to change the hinting engine in the `ftstring` demo program. * The graphical demo programs work better now in native color depth on win32 and x11. OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=168
21 lines
637 B
Diff
21 lines
637 B
Diff
---
|
|
src/base/ftobjs.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
Index: freetype-2.11.0/src/base/ftobjs.c
|
|
===================================================================
|
|
--- freetype-2.11.0.orig/src/base/ftobjs.c
|
|
+++ freetype-2.11.0/src/base/ftobjs.c
|
|
@@ -2646,6 +2646,11 @@
|
|
|
|
if ( FT_IS_SCALABLE( face ) )
|
|
{
|
|
+ if ( face->family_name && strncmp(face->family_name, "CMEX", 4 ) == 0){
|
|
+ face->underline_position = (FT_Short)( -face->units_per_EM / 10 );
|
|
+ face->underline_thickness = (FT_Short)( face->units_per_EM / 30 );
|
|
+ }
|
|
+
|
|
if ( face->height < 0 )
|
|
face->height = (FT_Short)-face->height;
|
|
|