diff options
author | Werner Lemberg <wl@gnu.org> | 2003-06-17 10:42:27 +0000 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2003-06-17 10:42:27 +0000 |
commit | 052904e3a0a89aaa35c38503205863a8fc7a4132 (patch) | |
tree | f85ac2741b6e160492ce775032fdb233a6868b32 /src | |
parent | 6ae53a79db33991e0d203bf636f1c5e87d4dd045 (diff) | |
download | freetype2-052904e3a0a89aaa35c38503205863a8fc7a4132.tar.gz |
* include/freetype/ftglyph.h (ft_glyph_bbox_unscaled,
ft_glyph_bbox_subpixels, ft_glyph_bbox_gridfit,
ft_glyph_bbox_truncate, ft_glyph_bbox_pixels): Replaced with
FT_GLYPH_BBOX_UNSCALED, FT_GLYPH_BBOX_SUBPIXELS,
FT_GLYPH_BBIX_GRIDFIT, FT_GLYPH_BBOX_TRUNCATE, FT_GLYPH_BBOX_PIXELS.
The lowercase variants are now (deprecated aliases) to the uppercase
versions.
Updated all other files.
* include/freetype/ftmodule.h (ft_module_font_driver,
ft_module_renderer, ft_module_hinter, ft_module_styler,
ft_module_driver_scalable, ft_module_driver_no_outlines,
ft_module_driver_has_hinter): Replaced with FT_MODULE_FONT_DRIVER,
FT_MODULE_RENDERER, FT_MODULE_HINTER, FT_MODULE_STYLER,
FT_MODULE_DRIVER_SCALABLE, FT_MODULE_DRIVER_NO_OUTLINES,
FT_MODULE_DRIVER_HAS_HINTER.
The lowercase variants are now (deprecated aliases) to the uppercase
versions.
Updated all other files.
* src/base/ftglyph.c (FT_Glyph_Get_CBox): Handle bbox_mode better
as enumeration.
* src/pcf/pcfdrivr.c (pcf_driver_class), src/winfonts/winfnt.c
(winfnt_driver_class), src/bdf/bdfdrivr.c (bdf_driver_class): Add
the FT_MODULE_DRIVER_NO_OUTLINES flag.
Diffstat (limited to 'src')
-rw-r--r-- | src/autohint/ahmodule.c | 4 | ||||
-rw-r--r-- | src/base/ftglyph.c | 6 | ||||
-rw-r--r-- | src/bdf/bdfdrivr.c | 3 | ||||
-rw-r--r-- | src/cff/cffdrivr.c | 8 | ||||
-rw-r--r-- | src/cid/cidriver.c | 8 | ||||
-rw-r--r-- | src/pcf/pcfdrivr.c | 3 | ||||
-rw-r--r-- | src/pfr/pfrdrivr.c | 4 | ||||
-rw-r--r-- | src/psaux/psobjs.c | 8 | ||||
-rw-r--r-- | src/raster/ftrend1.c | 6 | ||||
-rw-r--r-- | src/smooth/ftsmooth.c | 6 | ||||
-rw-r--r-- | src/truetype/ttdriver.c | 6 | ||||
-rw-r--r-- | src/type1/t1driver.c | 6 | ||||
-rw-r--r-- | src/type42/t42drivr.c | 8 | ||||
-rw-r--r-- | src/winfonts/winfnt.c | 3 |
14 files changed, 42 insertions, 37 deletions
diff --git a/src/autohint/ahmodule.c b/src/autohint/ahmodule.c index 1819e9ef9..8fce31d61 100644 --- a/src/autohint/ahmodule.c +++ b/src/autohint/ahmodule.c @@ -4,7 +4,7 @@ /* */ /* Auto-hinting module implementation (declaration). */ /* */ -/* Copyright 2000-2001, 2002 Catharon Productions Inc. */ +/* Copyright 2000-2001, 2002, 2003 Catharon Productions Inc. */ /* Author: David Turner */ /* */ /* This file is part of the Catharon Typography Project and shall only */ @@ -119,7 +119,7 @@ FT_CALLBACK_TABLE_DEF const FT_Module_Class autohint_module_class = { - ft_module_hinter, + FT_MODULE_HINTER, sizeof ( FT_AutoHinterRec ), "autohinter", diff --git a/src/base/ftglyph.c b/src/base/ftglyph.c index 1881c7a8d..8d7e831e6 100644 --- a/src/base/ftglyph.c +++ b/src/base/ftglyph.c @@ -541,7 +541,8 @@ clazz->glyph_bbox( glyph, acbox ); /* perform grid fitting if needed */ - if ( bbox_mode & ft_glyph_bbox_gridfit ) + if ( bbox_mode == FT_GLYPH_BBOX_GRIDFIT || + bbox_mode == FT_GLYPH_BBOX_PIXELS ) { acbox->xMin &= -64; acbox->yMin &= -64; @@ -550,7 +551,8 @@ } /* convert to integer pixels if needed */ - if ( bbox_mode & ft_glyph_bbox_truncate ) + if ( bbox_mode == FT_GLYPH_BBOX_TRUNCATE || + bbox_mode == FT_GLYPH_BBOX_PIXELS ) { acbox->xMin >>= 6; acbox->yMin >>= 6; diff --git a/src/bdf/bdfdrivr.c b/src/bdf/bdfdrivr.c index 05c8faa18..369039971 100644 --- a/src/bdf/bdfdrivr.c +++ b/src/bdf/bdfdrivr.c @@ -703,7 +703,8 @@ THE SOFTWARE. const FT_Driver_ClassRec bdf_driver_class = { { - ft_module_font_driver, + FT_MODULE_FONT_DRIVER | + FT_MODULE_DRIVER_NO_OUTLINES, sizeof ( FT_DriverRec ), "bdf", diff --git a/src/cff/cffdrivr.c b/src/cff/cffdrivr.c index 34ed2bf76..f58bec05e 100644 --- a/src/cff/cffdrivr.c +++ b/src/cff/cffdrivr.c @@ -4,7 +4,7 @@ /* */ /* OpenType font driver implementation (body). */ /* */ -/* Copyright 1996-2001, 2002 by */ +/* Copyright 1996-2001, 2002, 2003 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -378,9 +378,9 @@ { /* begin with the FT_Module_Class fields */ { - ft_module_font_driver | - ft_module_driver_scalable | - ft_module_driver_has_hinter, + FT_MODULE_FONT_DRIVER | + FT_MODULE_DRIVER_SCALABLE | + FT_MODULE_DRIVER_HAS_HINTER, sizeof( CFF_DriverRec ), "cff", diff --git a/src/cid/cidriver.c b/src/cid/cidriver.c index 4d6f442c0..471f19637 100644 --- a/src/cid/cidriver.c +++ b/src/cid/cidriver.c @@ -4,7 +4,7 @@ /* */ /* CID driver interface (body). */ /* */ -/* Copyright 1996-2001, 2002 by */ +/* Copyright 1996-2001, 2002, 2003 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -69,9 +69,9 @@ { /* first of all, the FT_Module_Class fields */ { - ft_module_font_driver | - ft_module_driver_scalable | - ft_module_driver_has_hinter , + FT_MODULE_FONT_DRIVER | + FT_MODULE_DRIVER_SCALABLE | + FT_MODULE_DRIVER_HAS_HINTER, sizeof( FT_DriverRec ), "t1cid", /* module name */ diff --git a/src/pcf/pcfdrivr.c b/src/pcf/pcfdrivr.c index 37e6c0943..a1dae7d60 100644 --- a/src/pcf/pcfdrivr.c +++ b/src/pcf/pcfdrivr.c @@ -520,7 +520,8 @@ THE SOFTWARE. const FT_Driver_ClassRec pcf_driver_class = { { - ft_module_font_driver, + FT_MODULE_FONT_DRIVER | + FT_MODULE_DRIVER_NO_OUTLINES, sizeof ( FT_DriverRec ), "pcf", diff --git a/src/pfr/pfrdrivr.c b/src/pfr/pfrdrivr.c index 9c11b1f00..67989c577 100644 --- a/src/pfr/pfrdrivr.c +++ b/src/pfr/pfrdrivr.c @@ -129,8 +129,8 @@ const FT_Driver_ClassRec pfr_driver_class = { { - ft_module_font_driver | - ft_module_driver_scalable, + FT_MODULE_FONT_DRIVER | + FT_MODULE_DRIVER_SCALABLE, sizeof( FT_DriverRec ), diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c index 5ef111ac4..09bfb4780 100644 --- a/src/psaux/psobjs.c +++ b/src/psaux/psobjs.c @@ -276,8 +276,8 @@ FT_LOCAL_DEF( void ) ps_parser_skip_spaces( PS_Parser parser ) { - FT_Byte* cur = parser->cursor; - FT_Byte* limit = parser->limit; + FT_Byte* cur = parser->cursor; + FT_Byte* limit = parser->limit; while ( cur < limit ) @@ -296,8 +296,8 @@ FT_LOCAL_DEF( void ) ps_parser_skip_alpha( PS_Parser parser ) { - FT_Byte* cur = parser->cursor; - FT_Byte* limit = parser->limit; + FT_Byte* cur = parser->cursor; + FT_Byte* limit = parser->limit; while ( cur < limit ) diff --git a/src/raster/ftrend1.c b/src/raster/ftrend1.c index 86b170cfe..bfb274b2f 100644 --- a/src/raster/ftrend1.c +++ b/src/raster/ftrend1.c @@ -4,7 +4,7 @@ /* */ /* The FreeType glyph rasterizer interface (body). */ /* */ -/* Copyright 1996-2001, 2002 by */ +/* Copyright 1996-2001, 2002, 2003 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -212,7 +212,7 @@ const FT_Renderer_Class ft_raster1_renderer_class = { { - ft_module_renderer, + FT_MODULE_RENDERER, sizeof( FT_RendererRec ), "raster1", @@ -245,7 +245,7 @@ const FT_Renderer_Class ft_raster5_renderer_class = { { - ft_module_renderer, + FT_MODULE_RENDERER, sizeof( FT_RendererRec ), "raster5", diff --git a/src/smooth/ftsmooth.c b/src/smooth/ftsmooth.c index 004f40a28..c06a4e648 100644 --- a/src/smooth/ftsmooth.c +++ b/src/smooth/ftsmooth.c @@ -284,7 +284,7 @@ const FT_Renderer_Class ft_smooth_renderer_class = { { - ft_module_renderer, + FT_MODULE_RENDERER, sizeof( FT_RendererRec ), "smooth", @@ -313,7 +313,7 @@ const FT_Renderer_Class ft_smooth_lcd_renderer_class = { { - ft_module_renderer, + FT_MODULE_RENDERER, sizeof( FT_RendererRec ), "smooth-lcd", @@ -343,7 +343,7 @@ const FT_Renderer_Class ft_smooth_lcdv_renderer_class = { { - ft_module_renderer, + FT_MODULE_RENDERER, sizeof( FT_RendererRec ), "smooth-lcdv", diff --git a/src/truetype/ttdriver.c b/src/truetype/ttdriver.c index 8c1e2fc11..a269d0e83 100644 --- a/src/truetype/ttdriver.c +++ b/src/truetype/ttdriver.c @@ -382,10 +382,10 @@ const FT_Driver_ClassRec tt_driver_class = { { - ft_module_font_driver | - ft_module_driver_scalable | + FT_MODULE_FONT_DRIVER | + FT_MODULE_DRIVER_SCALABLE | #ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER - ft_module_driver_has_hinter, + FT_MODULE_DRIVER_HAS_HINTER, #else 0, #endif diff --git a/src/type1/t1driver.c b/src/type1/t1driver.c index 6d6a77429..ebd6a6590 100644 --- a/src/type1/t1driver.c +++ b/src/type1/t1driver.c @@ -231,9 +231,9 @@ const FT_Driver_ClassRec t1_driver_class = { { - ft_module_font_driver | - ft_module_driver_scalable | - ft_module_driver_has_hinter, + FT_MODULE_FONT_DRIVER | + FT_MODULE_DRIVER_SCALABLE | + FT_MODULE_DRIVER_HAS_HINTER, sizeof( FT_DriverRec ), diff --git a/src/type42/t42drivr.c b/src/type42/t42drivr.c index 65bf2e8aa..d9668775c 100644 --- a/src/type42/t42drivr.c +++ b/src/type42/t42drivr.c @@ -4,7 +4,7 @@ /* */ /* High-level Type 42 driver interface (body). */ /* */ -/* Copyright 2002 by Roberto Alameda. */ +/* Copyright 2002, 2003 by Roberto Alameda. */ /* */ /* This file is part of the FreeType project, and may only be used, */ /* modified, and distributed under the terms of the FreeType project */ @@ -123,10 +123,10 @@ const FT_Driver_ClassRec t42_driver_class = { { - ft_module_font_driver | - ft_module_driver_scalable | + FT_MODULE_FONT_DRIVER | + FT_MODULE_DRIVER_SCALABLE | #ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER - ft_module_driver_has_hinter, + FT_MODULE_DRIVER_HAS_HINTER, #else 0, #endif diff --git a/src/winfonts/winfnt.c b/src/winfonts/winfnt.c index c916ebcf0..4bf56192b 100644 --- a/src/winfonts/winfnt.c +++ b/src/winfonts/winfnt.c @@ -667,7 +667,8 @@ const FT_Driver_ClassRec winfnt_driver_class = { { - ft_module_font_driver, + FT_MODULE_FONT_DRIVER | + FT_MODULE_DRIVER_NO_OUTLINES, sizeof ( FT_DriverRec ), "winfonts", |