* src/cid/cidobjs.c (CID_Size_Init): Renamed to...
(cid_size_init): This. * src/psaux/psobjs.c (T1_Builder_Add_Point1): Renamed to... (t1_builder_add_point1): This. Updated all affected code. * src/pshinter/pshalgo3.c (psh3_hint_align): Fix compiler warnings. * src/type1/t1gload.c (T1_Compute_Max_Advance): Ditto. Formatting, minor doc fixes.
This commit is contained in:
parent
08840150b7
commit
6b5c669b7b
220
ChangeLog
220
ChangeLog
|
@ -1,56 +1,198 @@
|
|||
2002-09-05 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/cid/cidobjs.c (CID_Size_Init): Renamed to...
|
||||
(cid_size_init): This.
|
||||
* src/psaux/psobjs.c (T1_Builder_Add_Point1): Renamed to...
|
||||
(t1_builder_add_point1): This.
|
||||
|
||||
Updated all affected code.
|
||||
|
||||
* src/pshinter/pshalgo3.c (psh3_hint_align): Fix compiler warnings.
|
||||
* src/type1/t1gload.c (T1_Compute_Max_Advance): Ditto.
|
||||
|
||||
2002-09-04 David Turner <david@freetype.org>
|
||||
|
||||
* include/freetype/freetype.h: corrected the definition of
|
||||
* include/freetype/freetype.h: Corrected the definition of
|
||||
ft_encoding_symbol to be FT_ENCODING_MS_SYMBOL (instead of
|
||||
the erroneous FT_ENCODING_SYMBOL)
|
||||
|
||||
* builds/unix/unix-def.in: added "datadir" definition
|
||||
(thanks to Anthony Fok)
|
||||
the erroneous FT_ENCODING_SYMBOL).
|
||||
|
||||
* builds/unix/unix-def.in (datadir): Initialize it (thanks to
|
||||
Anthony Fok).
|
||||
|
||||
2002-08-29 David Turner <david@freetype.org>
|
||||
|
||||
* src/pshinter/pshalgo.c: slight modification to the Postscript hinter
|
||||
to slightly increase the contrast of smooth hinting. This is very similar
|
||||
to what the auto-hinter does when it comes to stem width computations.
|
||||
However, it produces better results with well-hinted fonts..
|
||||
Slight modification to the Postscript hinter to slightly increase
|
||||
the contrast of smooth hinting. This is very similar to what the
|
||||
auto-hinter does when it comes to stem width computations. However,
|
||||
it produces better results with well-hinted fonts.
|
||||
|
||||
* README, docs/CHANGES: updating for the 2.1.3 release
|
||||
* include/freetype/internal/psaux.h (T1_Decoder_FuncsRec): Add hint
|
||||
mode to `init' member function.
|
||||
(T1_DecoderRec): Add hint mode.
|
||||
* include/freetype/internal/pshints (T1_Hints_ApplyFunc,
|
||||
T2_Hints_ApplyFunc): Pass `hint_mode', not `hint_flags'.
|
||||
* src/psaux/t1decode.c (t1_decoder_init): Add hint mode argument.
|
||||
* src/pshinter/pshalgo1.c (ps1_hints_apply): Pass hint mode, not
|
||||
hint flags.
|
||||
* src/pshinter/pshalgo2.c (ps2_hints_apply): Ditto.
|
||||
* src/pshinter/pshalgo3.c (ps3_hints_apply): Ditto.
|
||||
(STRONGER): New macro.
|
||||
(psh3_hint_align, psh3_hint_table_align_hints): Pass `glyph' instead
|
||||
of `hint_flags'.
|
||||
Implement announced changes.
|
||||
* src/pshinter/pshalgo3.h (PSH3_GlyphRec): Add flags to control
|
||||
vertical and horizontal hints and snapping.
|
||||
|
||||
* README, docs/CHANGES: Updating for the 2.1.3 release.
|
||||
|
||||
2002-08-27 David Turner <david@freetype.org>
|
||||
|
||||
* massive re-formatting changes to many, many source files. I don't
|
||||
want to list them all here. The operations performed were all logical
|
||||
transformations of the sources:
|
||||
* Massive re-formatting changes to many, many source files. I don't
|
||||
want to list them all here. The operations performed were all
|
||||
logical transformations of the sources:
|
||||
|
||||
- trying to convert all enums and constants to CAPITALIZED_STYLE, with
|
||||
#define definitions like
|
||||
- trying to convert all enums and constants to CAPITALIZED_STYLE,
|
||||
#with define definitions like
|
||||
|
||||
#define my_old_constants MY_NEW_CONSTANT
|
||||
|
||||
- big, big update of the documentation comments
|
||||
|
||||
* include/freetype/freetype.h, src/base/ftobjs.c, src/smooth/ftsmooth.c,
|
||||
include/freetype/ftimage.h: adding support for LCD-optimized rendering
|
||||
though the new constants/enums:
|
||||
* include/freetype/freetype.h, src/base/ftobjs.c,
|
||||
src/smooth/ftsmooth.c, include/freetype/ftimage.h: Adding support
|
||||
for LCD-optimized rendering though the new constants/enums:
|
||||
|
||||
FT_RENDER_MODE_LCD, FT_RENDER_MODE_LCD_V
|
||||
FT_PIXEL_MODE_LCD, FT_PIXEL_MODE_LCD_V
|
||||
|
||||
this is still work in progress, don't expect everything to work correctly
|
||||
though most of the features have been implemented.
|
||||
This is still work in progress, don't expect everything to work
|
||||
correctly though most of the features have been implemented.
|
||||
|
||||
* adding new FT_LOAD_XXX flags, used to specify both hinting and rendering
|
||||
targets:
|
||||
* Adding new FT_LOAD_XXX flags, used to specify both hinting and
|
||||
rendering targets:
|
||||
|
||||
FT_LOAD_TARGET_NORMAL :: anti-aliased hinting & rendering
|
||||
FT_LOAD_TARGET_MONO :: monochrome bitmaps
|
||||
FT_LOAD_TARGET_LCD :: horizontal RGB/BGR decimated hinting & rendering
|
||||
FT_LOAD_TARGET_LCD_V :: vertical RGB/BGR decimated hinting & rendering
|
||||
FT_LOAD_TARGET_LCD :: horizontal RGB/BGR decimated
|
||||
hinting & rendering
|
||||
FT_LOAD_TARGET_LCD_V :: vertical RGB/BGR decimated
|
||||
hinting & rendering
|
||||
|
||||
note that FT_LOAD_TARGET_NORMAL is 0, which means that the default
|
||||
Note that FT_LOAD_TARGET_NORMAL is 0, which means that the default
|
||||
behaviour of the font engine is _unchanged_.
|
||||
|
||||
* include/freetype/ftimage.h
|
||||
(FT_Outline_{Move,Line,Conic,Cubic}To_Func): Renamed to...
|
||||
(FT_Outline_{Move,Line,Conic,Cubic}ToFunc): This.
|
||||
(FT_Raster_Span_Func): Renamed to ...
|
||||
(FT_SpanFunc): This.
|
||||
(FT_Raster_{New,Done,Reset,Set_Mode,Render}_Func): Renamed to ...
|
||||
(FT_Raster_{New,Done,Reset,SetMode,Render}Func}: This.
|
||||
|
||||
Updated all affected code.
|
||||
|
||||
* include/freetype/ftrender.h
|
||||
(FT_Glyph_{Init,Done,Transform,BBox,Copy,Prepare}_Func): Renamed
|
||||
to ...
|
||||
(FT_Glyph_{Init,Done,Transform,GetBBox,Copy,Prepare}Func): This.
|
||||
(FTRenderer_{render,transform,getCBox,setMode}): Renamed to ...
|
||||
(FT_Renderer_{RenderFunc,TransformFunc,GetCBoxFunc,SeteModeFunc}):
|
||||
This.
|
||||
|
||||
Updated all affected code.
|
||||
|
||||
* src/autohint/ahtypes.h (AH_Point, AH_Segment, AH_Edge, AH_Globals,
|
||||
AH_Face_Globals, AH_Outline, AH_Hinter): These typedefs are now
|
||||
pointers to the corresponding `*Rec' structures. All source files
|
||||
have been updated accordingly.
|
||||
|
||||
* src/cff/cffgload.c (cff_decoder_init): Add hint mode as parameter.
|
||||
* src/cff/cffgload.h (CFF_Decoder): Add `hint_mode' element.
|
||||
|
||||
* src/cid/cidgload.c (CID_Compute_Max_Advance): Renamed to...
|
||||
(cid_face_compute_max_advance): This.
|
||||
(CID_Load_Glyph): Renamed to...
|
||||
(cid_slot_load_glyph): This.
|
||||
* src/cid/cidload.c (CID_Open_Face): Renamed to...
|
||||
(cid_face_open): This.
|
||||
* src/cid/cidobjs.c (CID_GlyphSlot_{Done,Init}): Renamed to...
|
||||
(cid_slot_{done,init}): This.
|
||||
(CID_Size_{Get_Globals_Funcs,Done,Reset): Renamed to...
|
||||
(cid_size_{get_globals_funcs,done,reset): This.
|
||||
(CID_Face_{Done,Init}): Renamed to...
|
||||
(cid_face_{done,init}): This.
|
||||
(CID_Driver_{Done,Init}: Renamed to...
|
||||
(cid_driver_{done,init}: This.
|
||||
* src/cid/cidparse.c (CID_{New,Done}_Parser): Renamed to...
|
||||
(cid_parser_{new,done}): This.
|
||||
* src/cid/cidparse.h (CID_Skip_{Spaces,Alpha}): Renamed to...
|
||||
(cid_parser_skip_{spaces,alpha}): This.
|
||||
(CID_To{Int,Fixed,CoordArray,FixedArray,Token,TokenArray}): Renamed
|
||||
to...
|
||||
(cid_parser_to_{int,fixed,coord_array,fixed_array,token,token_array}):
|
||||
This.
|
||||
(CID_Load_{Field,Field_Table): Renamed to...
|
||||
(cid_parser_load_{field,field_table}): This.
|
||||
* src/cid/cidriver.c (CID_Get_Interface): Renamed to...
|
||||
(cid_get_interface): This.
|
||||
|
||||
Updated all affected code.
|
||||
|
||||
* src/psaux/psobjs.c (PS_Table_*): Renamed to...
|
||||
(ps_table_*): This.
|
||||
(T1_Builder_*): Renamed to...
|
||||
(t1_builder_*): This.
|
||||
* src/psaux/t1decode.c (T1_Decoder_*): Renamed to...
|
||||
(t1_decoder_*): This.
|
||||
|
||||
* src/psnames/psmodule.c (PS_*): Renamed to...
|
||||
(ps_*): This.
|
||||
|
||||
Updated all affected code.
|
||||
|
||||
* src/sfnt/sfdriver (SFNT_Get_Interface): Renamed to...
|
||||
(sfnt_get_interface): This.
|
||||
* src/sfnt/sfobjs.c (SFNT_*): Renamed to...
|
||||
(sfnt_*): This.
|
||||
* src/sfnt/ttcmap.c (TT_CharMap_{Load,Free}): Renamed to...
|
||||
(tt_face_{load,free}_charmap): This.
|
||||
* src/sfnt/ttcmap0.c (TT_Build_CMaps): Renamed to...
|
||||
(tt_face_build_cmaps): This.
|
||||
* src/sfnt/ttload.c (TT_*): Renamed to...
|
||||
(tt_face_*): This.
|
||||
* src/sfnt/ttpost.c (TT_Post_Default_Names): Renamed to...
|
||||
(tt_post_default_names): This.
|
||||
(Load_*): Renamed to...
|
||||
(load_*): This.
|
||||
(TT_*): Renamed to...
|
||||
(tt_face_*): This.
|
||||
* src/sfnt/ttsbit.c (TT_*): Renamed to...
|
||||
(tt_face_*): This.
|
||||
({Find,Load,Crop}_*): Renamed to...
|
||||
({find,load,crop}_*): This.
|
||||
|
||||
Updated all affected code.
|
||||
|
||||
* src/smooth/ftsmooth.c (ft_smooth_render): Renamed to...
|
||||
(ft_smooth_render_generic): This.
|
||||
Make function more generic by adding vertical and horizontal scaling
|
||||
factors.
|
||||
(ft_smooth_render, ft_smooth_render_lcd, ft_smooth_render_lcd_v):
|
||||
New functions.
|
||||
|
||||
(ft_smooth_locd_renderer_class, ft_smooth_lcdv_renderer_class): New
|
||||
classes.
|
||||
|
||||
* src/truetype/ttobjs.c (TT_{Done,New}_GlyphZone): Renamed to...
|
||||
(tt_glyphzone_{done,new}): This.
|
||||
(TT_{Face,Size,Driver}_*): Renamed to...
|
||||
(tt_{face,size,driver}_*): This.
|
||||
* src/truetype/ttpload.c (TT_Load_Locations): Renamed to...
|
||||
(tt_face_load_loca): This.
|
||||
(TT_Load_Programs): Renamed to...
|
||||
(tt_face_load_fpgm): This.
|
||||
(TT_*): Renamed to...
|
||||
(tt_face_*): This.
|
||||
|
||||
2002-08-27 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
|
@ -58,28 +200,26 @@
|
|||
|
||||
2002-08-23 Graham Asher <graham.asher@btinternet.com>
|
||||
|
||||
* /src/cff/cffgload.c (cff_operator_seac)
|
||||
[FT_CONFIG_OPTION_INCREMENTAL] incremental fonts (actually
|
||||
not incremental in the case of CFF but just using callbacks
|
||||
to get glyph recipes) pass the character code, not the glyph
|
||||
index, to the get_glyph_data function; they have no
|
||||
valid charset table.
|
||||
* src/cff/cffgload.c (cff_operator_seac)
|
||||
[FT_CONFIG_OPTION_INCREMENTAL]: Incremental fonts (actually not
|
||||
incremental in the case of CFF but just using callbacks to get glyph
|
||||
recipes) pass the character code, not the glyph index, to the
|
||||
get_glyph_data function; they have no valid charset table.
|
||||
|
||||
* /src/cff/cffload.c (cff_font_load) removed special cases
|
||||
for FT_CONFIG_OPTION_INCREMENTAL, which are no longer
|
||||
necessary; CFF fonts provided via the incremental interface
|
||||
now have to conform more closely to the CFF font format.
|
||||
* src/cff/cffload.c (cff_font_load): Removed special cases for
|
||||
FT_CONFIG_OPTION_INCREMENTAL, which are no longer necessary; CFF
|
||||
fonts provided via the incremental interface now have to conform
|
||||
more closely to the CFF font format.
|
||||
|
||||
* /src/cff/cffload.h (cff_font_load declaration)
|
||||
removed argument now unneeded.
|
||||
* src/cff/cffload.h (cff_font_load): Removed argument now unneeded.
|
||||
|
||||
* /src/cff/cffobjs.c (cff_face_init) changed call to
|
||||
cff_font_load to conform with new signature.
|
||||
* src/cff/cffobjs.c (cff_face_init): Changed call to cff_font_load
|
||||
to conform with new signature.
|
||||
|
||||
2002-08-22 David Turner <david@freetype.org>
|
||||
|
||||
* src/base/ftobject.c, src/base/ftsynth.c, src/base/ftstroker.c,
|
||||
src/bdf/bdfdrivr.c: removed compiler warnings
|
||||
src/bdf/bdfdrivr.c: Removed compiler warnings.
|
||||
|
||||
2002-08-21 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
|
|
79
docs/CHANGES
79
docs/CHANGES
|
@ -6,72 +6,69 @@ LATEST CHANGES BETWEEN 2.1.3 and 2.1.2
|
|||
in incorrect transformations being applied (for example, rotations
|
||||
were processed in opposite angles).
|
||||
|
||||
- the format 8 and 12 TrueType charmap enumeration routines have been
|
||||
fixed (FT_Get_Next_Char returned invalid values)
|
||||
- The format 8 and 12 TrueType charmap enumeration routines have been
|
||||
fixed (FT_Get_Next_Char returned invalid values).
|
||||
|
||||
- the PFR font driver returned incorrect advance widths when the
|
||||
outline and metrics resolution defined in the font file were
|
||||
different
|
||||
- The PFR font driver returned incorrect advance widths if the outline
|
||||
and metrics resolution defined in the font file were different.
|
||||
|
||||
- FT_Glyph_To_Bitmap now returnes succesfully when called with
|
||||
a FT_BitmapGlyph argument (it previously returned an error)
|
||||
- FT_Glyph_To_Bitmap now returns successfully when called with an
|
||||
FT_BitmapGlyph argument (it previously returned an error).
|
||||
|
||||
- A bug in the Type 1 loader that prevented valid font bounding
|
||||
boxes to be loaded from multiple master fonts.
|
||||
- A bug in the Type 1 loader that prevented valid font bounding boxes to
|
||||
be loaded from multiple master fonts.
|
||||
|
||||
- the SFNT validation code was rewritten. FreeType can now load
|
||||
- The SFNT validation code has been rewritten. FreeType can now load
|
||||
"broken" fonts that were usable on Windows, but not with previous
|
||||
versions of the library
|
||||
versions of the library.
|
||||
|
||||
- the computation of bearings in the BDF driver has been fixed
|
||||
- The computation of bearings in the BDF driver has been fixed.
|
||||
|
||||
|
||||
II. MISCELLANEOUS
|
||||
|
||||
- the automatic and postscript hinters have both been updated. This
|
||||
results in a relatively important increase of rendering quality
|
||||
since many nasty defaults have been supressed.
|
||||
- The automatic and postscript hinters have both been updated. This
|
||||
results in a relatively important increase of rendering quality since
|
||||
many nasty defaults have been supressed.
|
||||
|
||||
- a new, experimental, support for incremental font loading (i.e.
|
||||
loading of fonts where the glyphs are not in the font file itself,
|
||||
but provided by an external component, like a Postscript interpreter)
|
||||
has been added by Graham Asher. This is still work in progress
|
||||
however.
|
||||
- A new, experimental, support for incremental font loading (i.e.,
|
||||
loading of fonts where the glyphs are not in the font file itself, but
|
||||
provided by an external component, like a Postscript interpreter) has
|
||||
been added by Graham Asher. This is still work in progress, however.
|
||||
|
||||
- a new, experimental, path stroker has been added. It doesn't suffer
|
||||
from sever rounding errors, and treat bezier arcs directly. Still
|
||||
work in progress
|
||||
- A new, experimental, path stroker has been added. It doesn't suffer
|
||||
from severe rounding errors, and treat bezier arcs directly. Still
|
||||
work in progress.
|
||||
|
||||
- the massive re-formatting of sources and internal re-design is still
|
||||
- The massive re-formatting of sources and internal re-design is still
|
||||
under-way. Many internal functions, constants, and types have been
|
||||
renamed.
|
||||
|
||||
- the "load_flags" parameter of FT_Load_Glyph is now a FT_Int32
|
||||
- The "load_flags" parameter of FT_Load_Glyph is now an FT_Int32
|
||||
(instead of just being an FT_Int). This breaks source and binary
|
||||
compatibility for 16bit systems only, while retaining both of them
|
||||
for 32 and 64 bit ones.
|
||||
compatibility for 16bit systems only, while retaining both of them for
|
||||
32 and 64 bit ones.
|
||||
|
||||
some new flags have been added consequently:
|
||||
Some new flags have been added consequently:
|
||||
|
||||
FT_LOAD_NO_AUTOHINT :: disable the use of the auto-hinter
|
||||
(but not native format hinters)
|
||||
FT_LOAD_NO_AUTOHINT :: Disable the use of the auto-hinter
|
||||
(but not native format hinters).
|
||||
|
||||
FT_LOAD_TARGET_NORMAL :: hint and render for normal anti-aliased
|
||||
displays
|
||||
FT_LOAD_TARGET_NORMAL :: Hint and render for normal anti-aliased
|
||||
displays.
|
||||
|
||||
FT_LOAD_TARGET_MONO :: hint and render for 1-bit displays
|
||||
FT_LOAD_TARGET_MONO :: Hint and render for 1-bit displays.
|
||||
|
||||
FT_LOAD_TARGET_LCD :: hint and render for horizontal RGB or BGR
|
||||
FT_LOAD_TARGET_LCD :: Hint and render for horizontal RGB or BGR
|
||||
sub-pixel displays (like LCD screens).
|
||||
THIS IS STILL EXPERIMENTAL
|
||||
THIS IS STILL EXPERIMENTAL!
|
||||
|
||||
FT_LOAD_TARGET_LCD_V :: same a FT_LOAD_TARGET_LCD, for vertical
|
||||
sub-pixel displays (like rotated LCD screens)
|
||||
THIS IS STILL EXPERIMENTAL
|
||||
|
||||
FT_LOAD_MONOCHROME is still supported, but only affects
|
||||
rendering, not the hinting.
|
||||
FT_LOAD_TARGET_LCD_V :: Same as FT_LOAD_TARGET_LCD, for vertical
|
||||
sub-pixel displays (like rotated LCD
|
||||
screens). THIS IS STILL EXPERIMENTAL!
|
||||
|
||||
FT_LOAD_MONOCHROME is still supported, but only affects rendering, not
|
||||
the hinting.
|
||||
|
||||
|
||||
========================================================================
|
||||
|
|
|
@ -403,7 +403,7 @@ FT_BEGIN_HEADER
|
|||
/* should redefine this macro in case of problems to something like */
|
||||
/* this: */
|
||||
/* */
|
||||
/* #define FT_ENC_TAG( value, _x1, _x2, _x3, _x4 ) (value) */
|
||||
/* #define FT_ENC_TAG( value, a, b, c, d ) (value) */
|
||||
/* */
|
||||
/* to get a simple enumeration without assigning special numbers. */
|
||||
/* */
|
||||
|
@ -433,88 +433,85 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* The values of this type correspond to specific character */
|
||||
/* repertories (i.e. charsets), and not to text encoding methods */
|
||||
/* (like UTF-8, UTF-16, GB2312_EUC, etc...) */
|
||||
/* (like UTF-8, UTF-16, GB2312_EUC, etc.). */
|
||||
/* */
|
||||
/* Other encodings might be defined in the future. */
|
||||
/* */
|
||||
/* <Values> */
|
||||
/* FT_ENCODING_NONE :: */
|
||||
/* the encoding value 0 is reserved. */
|
||||
/* The encoding value 0 is reserved. */
|
||||
/* */
|
||||
/* FT_ENCODING_UNICODE :: */
|
||||
/* corresponds to the Unicode character set. This value covers */
|
||||
/* Corresponds to the Unicode character set. This value covers */
|
||||
/* all versions of the Unicode repertoire, including ASCII and */
|
||||
/* Latin-1. Most fonts include a Unicode charmap, but not all */
|
||||
/* of them. */
|
||||
/* */
|
||||
/* FT_ENCODING_MS_SYMBOL :: */
|
||||
/* corresponds to the Microsoft Symbol encoding, used to encode */
|
||||
/* Corresponds to the Microsoft Symbol encoding, used to encode */
|
||||
/* mathematical symbols in the 32..255 character code range. For */
|
||||
/* more information, see http://www.ceviz.net/symbol.htm */
|
||||
/* more information, see `http://www.ceviz.net/symbol.htm'. */
|
||||
/* */
|
||||
/* FT_ENCODING_MS_SJIS :: */
|
||||
/* corresponds to Microsoft's Japanese SJIS encoding. More info */
|
||||
/* at http://langsupport.japanreference.com/encoding.shtml. */
|
||||
/* see note on multi-byte encodings below. */
|
||||
/* Corresponds to Microsoft's Japanese SJIS encoding. More info */
|
||||
/* at `http://langsupport.japanreference.com/encoding.shtml'. */
|
||||
/* See note on multi-byte encodings below. */
|
||||
/* */
|
||||
/* FT_ENCODING_MS_GB2312 :: */
|
||||
/* corresponds to the encoding system for Simplified Chinese, as */
|
||||
/* used in China. Only found in some TrueType fonts */
|
||||
/* Corresponds to the encoding system for Simplified Chinese, as */
|
||||
/* used in China. Only found in some TrueType fonts. */
|
||||
/* */
|
||||
/* */
|
||||
/* FT_ENCODING_MS_BIG5 :: */
|
||||
/* corresponds to the encoding system for Simplified Chinese, as */
|
||||
/* used in Taiwan and Hong Kong. Only found in some TrueType fonts */
|
||||
/* Corresponds to the encoding system for Traditional Chinese, as */
|
||||
/* used in Taiwan and Hong Kong. Only found in some TrueType fonts. */
|
||||
/* */
|
||||
/* FT_ENCODING_MS_WANSUNG :: */
|
||||
/* corresponds to the Korean encoding system known as Wansung. */
|
||||
/* Corresponds to the Korean encoding system known as Wansung. */
|
||||
/* This is a Microsoft encoding that is only found in some TrueType */
|
||||
/* fonts. For more information, see */
|
||||
/* http://www.microsoft.com/typography/unicode/949.txt */
|
||||
/* `http://www.microsoft.com/typography/unicode/949.txt'. */
|
||||
/* */
|
||||
/* FT_ENCODING_MS_JOHAB :: */
|
||||
/* The Korean standard character set (KS C-5601-1992), which */
|
||||
/* corresponds to Windows code page 1361. This character set */
|
||||
/* includes all possible Hangeul character combinations. */
|
||||
/* only found on some rare TrueType fonts. */
|
||||
/* Only found on some rare TrueType fonts. */
|
||||
/* */
|
||||
/* FT_ENCODING_ADOBE_LATIN_1 :: */
|
||||
/* corresponds to a Latin-1 encoding as defined in a Type 1 */
|
||||
/* Postscript font. It is limited to no more than 256 character */
|
||||
/* codes. */
|
||||
/* Corresponds to a Latin-1 encoding as defined in a Type 1 */
|
||||
/* Postscript font. It is limited to 256 character codes. */
|
||||
/* */
|
||||
/* FT_ENCODING_ADOBE_STANDARD :: */
|
||||
/* corresponds to the Adobe Standard encoding, as found in Type 1, */
|
||||
/* CFF and OpenType/CFF fonts. It is limited to no more than 256 */
|
||||
/* character codes. */
|
||||
/* Corresponds to the Adobe Standard encoding, as found in Type 1, */
|
||||
/* CFF, and OpenType/CFF fonts. It is limited to 256character */
|
||||
/* codes. */
|
||||
/* */
|
||||
/* FT_ENCODING_ADOBE_EXPERT :: */
|
||||
/* corresponds to the Adobe Expert encoding, as found in Type 1, */
|
||||
/* CFF and OpenType/CFF fonts. It is limited to no more than 256 */
|
||||
/* character codes */
|
||||
/* Corresponds to the Adobe Expert encoding, as found in Type 1, */
|
||||
/* CFF, and OpenType/CFF fonts. It is limited to 256 character */
|
||||
/* codes. */
|
||||
/* */
|
||||
/* FT_ENCODING_ADOBE_CUSTOM :: */
|
||||
/* corresponds to a custom encoding, as found in Type 1, CFF and */
|
||||
/* OpenType/CFF fonts. It is limited to no more than 256 character */
|
||||
/* codes */
|
||||
/* Corresponds to a custom encoding, as found in Type 1, CFF, and */
|
||||
/* OpenType/CFF fonts. It is limited to 256 character codes. */
|
||||
/* */
|
||||
/* FT_ENCODING_APPLE_ROMAN :: */
|
||||
/* corresponds to the 8-bit Apple roman encoding. Many TrueType and */
|
||||
/* OpenType fonts contain a charmap for this encoding, since it */
|
||||
/* older versions of Mac OS are able to use it. */
|
||||
/* Corresponds to the 8-bit Apple roman encoding. Many TrueType and */
|
||||
/* OpenType fonts contain a charmap for this encoding, since older */
|
||||
/* versions of Mac OS are able to use it. */
|
||||
/* */
|
||||
/* FT_ENCODING_OLD_LATIN_2 :: */
|
||||
/* this value is deprecated and was never used nor reported by */
|
||||
/* This value is deprecated and was never used nor reported by */
|
||||
/* FreeType. Don't use or test for it. */
|
||||
/* */
|
||||
/* <Note> */
|
||||
/* By default, FreeType automatically synthetizes a Unicode charmap */
|
||||
/* for Postscript fonts, using their glyph names dictionaries. */
|
||||
/* However, it will also report the encodings defined explicitely */
|
||||
/* in the font file, for the cases when they're needed, with the */
|
||||
/* Adobe values as well */
|
||||
/* However, it will also report the encodings defined explicitly in */
|
||||
/* the font file, for the cases when they are needed, with the Adobe */
|
||||
/* values as well. */
|
||||
/* */
|
||||
|
||||
typedef enum FT_Encoding_
|
||||
{
|
||||
FT_ENC_TAG( FT_ENCODING_NONE, 0, 0, 0, 0 ),
|
||||
|
@ -539,13 +536,14 @@ FT_BEGIN_HEADER
|
|||
|
||||
} FT_Encoding;
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Enum> */
|
||||
/* ft_encoding_xxx */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* These constants are deprecated, use the corresponding @FT_Encoding */
|
||||
/* These constants are deprecated; use the corresponding @FT_Encoding */
|
||||
/* values instead. */
|
||||
/* */
|
||||
/* <Values> */
|
||||
|
@ -582,6 +580,7 @@ FT_BEGIN_HEADER
|
|||
#define ft_encoding_adobe_custom FT_ENCODING_ADOBE_CUSTOM
|
||||
#define ft_encoding_apple_roman FT_ENCODING_APPLE_ROMAN
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Struct> */
|
||||
|
@ -668,7 +667,8 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* style_flags :: A set of bit flags indicating the style of */
|
||||
/* the face (i.e., italic, bold, underline, */
|
||||
/* etc). See the @FT_STYLE_FLAG_XXX constants */
|
||||
/* etc). See the @FT_STYLE_FLAG_XXX */
|
||||
/* constants. */
|
||||
/* */
|
||||
/* num_glyphs :: The total number of glyphs in the face. */
|
||||
/* */
|
||||
|
@ -863,56 +863,55 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* <Values> */
|
||||
/* FT_FACE_FLAG_SCALABLE :: */
|
||||
/* indicates that the face provides vectorial outlines. This doesn't */
|
||||
/* prevent embedded bitmaps. I.e. a face can have both this bit and */
|
||||
/* @FT_FACE_FLAG_FIXED_SIZES set */
|
||||
/* Indicates that the face provides vectorial outlines. This */
|
||||
/* doesn't prevent embedded bitmaps, i.e., a face can have both */
|
||||
/* this bit and @FT_FACE_FLAG_FIXED_SIZES set */
|
||||
/* */
|
||||
/* FT_FACE_FLAG_FIXED_SIZES :: */
|
||||
/* indicates that the face contains 'fixed sizes', i.e. bitmap */
|
||||
/* strikes for some given pixel sizes. See the 'num_fixed_sizes' */
|
||||
/* and 'available_sizes' fields of @FT_FaceRec */
|
||||
/* Indicates that the face contains `fixed sizes', i.e., bitmap */
|
||||
/* strikes for some given pixel sizes. See the `num_fixed_sizes' */
|
||||
/* and `available_sizes' fields of @FT_FaceRec. */
|
||||
/* */
|
||||
/* FT_FACE_FLAG_FIXED_WIDTH :: */
|
||||
/* indicates that the face contains fixed-width characters (like */
|
||||
/* Courier, Lucido, MonoType, etc..) */
|
||||
/* Indicates that the face contains fixed-width characters (like */
|
||||
/* Courier, Lucido, MonoType, etc.). */
|
||||
/* */
|
||||
/* FT_FACE_FLAG_SFNT :: */
|
||||
/* indicates that the face uses the 'sfnt' storage scheme. For */
|
||||
/* now, this means TrueType and OpenType */
|
||||
/* Indicates that the face uses the `sfnt' storage scheme. For */
|
||||
/* now, this means TrueType and OpenType. */
|
||||
/* */
|
||||
/* FT_FACE_FLAG_HORIZONTAL :: */
|
||||
/* indicates that the face contains horizontal glyph metrics. */
|
||||
/* This should be set for all common formats */
|
||||
/* Indicates that the face contains horizontal glyph metrics. This */
|
||||
/* should be set for all common formats. */
|
||||
/* */
|
||||
/* FT_FACE_FLAG_VERTICAL :: */
|
||||
/* indicates that the face contains vertical glyph metrics. This */
|
||||
/* is only available in some formats, not all of them */
|
||||
/* Indicates that the face contains vertical glyph metrics. This */
|
||||
/* is only available in some formats, not all of them. */
|
||||
/* */
|
||||
/* FT_FACE_FLAG_KERNING :: */
|
||||
/* indicates that the face contains kerning information. When set, */
|
||||
/* the kerning idstance can be retrieved through the function */
|
||||
/* FT_Get_Kerning. Note that if unset, this function will always */
|
||||
/* return the vector (0,0) */
|
||||
/* Indicates that the face contains kerning information. If set, */
|
||||
/* the kerning distance can be retrieved through the function */
|
||||
/* @FT_Get_Kerning. Note that if unset, this function will always */
|
||||
/* return the vector (0,0). */
|
||||
/* */
|
||||
/* FT_FACE_FLAG_FAST_GLYPHS :: */
|
||||
/* THIS FLAG IS DEPRECATED. DO NOT USE OR TEST IT */
|
||||
/* THIS FLAG IS DEPRECATED. DO NOT USE OR TEST IT. */
|
||||
/* */
|
||||
/* FT_FACE_FLAG_MULTIPLE_MASTERS :: */
|
||||
/* indicates that the font contains multiple masters and is capable */
|
||||
/* of interpolating between them. See the multiple-masters specific */
|
||||
/* API for details */
|
||||
/* Indicates that the font contains multiple masters and is capable */
|
||||
/* of interpolating between them. See the multiple-masters */
|
||||
/* specific API for details. */
|
||||
/* */
|
||||
/* FT_FACE_FLAG_GLYPH_NAMES :: */
|
||||
/* indicates that the font contains glyph names that can be */
|
||||
/* Indicates that the font contains glyph names that can be */
|
||||
/* retrieved through @FT_Get_Glyph_Names. Note that some TrueType */
|
||||
/* fonts contain broken glyph name tables. Use the function */
|
||||
/* use @FT_Has_PS_Glyph_Name when needed. */
|
||||
/* @FT_Has_PS_Glyph_Name when needed. */
|
||||
/* */
|
||||
/* FT_FACE_FLAG_EXTERNAL_STREAM :: */
|
||||
/* used internally by FreeType to indicate that a face's stream */
|
||||
/* was provided by the client application and should not be */
|
||||
/* destroyed when @FT_Done_Face is called. Don't read or test */
|
||||
/* this flag. */
|
||||
/* Used internally by FreeType to indicate that a face's stream was */
|
||||
/* provided by the client application and should not be destroyed */
|
||||
/* when @FT_Done_Face is called. Don't read or test this flag. */
|
||||
/* */
|
||||
#define FT_FACE_FLAG_SCALABLE ( 1L << 0 )
|
||||
#define FT_FACE_FLAG_FIXED_SIZES ( 1L << 1 )
|
||||
|
@ -1075,8 +1074,6 @@ FT_BEGIN_HEADER
|
|||
( face->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS )
|
||||
|
||||
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Constant> */
|
||||
|
@ -1084,14 +1081,14 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* <Description> */
|
||||
/* A list of bit-flags used to indicate the style of a given face. */
|
||||
/* These are used in the 'style_flags' field of @FT_FaceRec */
|
||||
/* These are used in the `style_flags' field of @FT_FaceRec. */
|
||||
/* */
|
||||
/* <Values> */
|
||||
/* FT_STYLE_FLAG_ITALIC :: */
|
||||
/* indicates that a given face is italicized */
|
||||
/* Indicates that a given face is italicized. */
|
||||
/* */
|
||||
/* FT_STYLE_FLAG_BOLD :: */
|
||||
/* indicates that a given face is bold */
|
||||
/* Indicates that a given face is bold. */
|
||||
/* */
|
||||
#define FT_STYLE_FLAG_ITALIC ( 1 << 0 )
|
||||
#define FT_STYLE_FLAG_BOLD ( 1 << 1 )
|
||||
|
@ -1524,6 +1521,7 @@ FT_BEGIN_HEADER
|
|||
#define FT_OPEN_DRIVER FT_OPEN_DRIVER
|
||||
#define FT_OPEN_PARAMS FT_OPEN_PARAMS
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Struct> */
|
||||
|
@ -2235,6 +2233,7 @@ FT_BEGIN_HEADER
|
|||
#define FT_LOAD_NO_AUTOHINT 0x8000U
|
||||
|
||||
/* */
|
||||
|
||||
#define FT_LOAD_TARGET_( x ) ( (FT_Int32)( (x) & 7 ) << 16 )
|
||||
#define FT_LOAD_TARGET_MODE( x ) ( (FT_Render_Mode)( ( (x) >> 16 ) & 7 ) )
|
||||
|
||||
|
@ -2243,6 +2242,7 @@ FT_BEGIN_HEADER
|
|||
#define FT_LOAD_TARGET_LCD FT_LOAD_TARGET_( FT_RENDER_MODE_LCD )
|
||||
#define FT_LOAD_TARGET_LCD_V FT_LOAD_TARGET_( FT_RENDER_MODE_LCD_V )
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Constant> */
|
||||
|
@ -2301,28 +2301,28 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* <Fields> */
|
||||
/* FT_RENDER_MODE_NORMAL :: */
|
||||
/* this is the default render mode; it corresponds to 8-bit */
|
||||
/* anti-aliased bitmaps, using 256 levels of opacity */
|
||||
/* This is the default render mode; it corresponds to 8-bit */
|
||||
/* anti-aliased bitmaps, using 256 levels of opacity. */
|
||||
/* */
|
||||
/* FT_RENDER_MODE_MONO :: */
|
||||
/* this mode corresponds to 1-bit bitmaps */
|
||||
/* This mode corresponds to 1-bit bitmaps. */
|
||||
/* */
|
||||
/* FT_RENDER_MODE_LCD :: */
|
||||
/* this mode corresponds to horizontal RGB/BGR sub-pixel displays, */
|
||||
/* like LCD-screens. It produces 8-bit bitmaps that are 3 times the */
|
||||
/* width of the original glyph outline in pixels, and which use the */
|
||||
/* @FT_PIXEL_MODE_LCD mode */
|
||||
/* This mode corresponds to horizontal RGB/BGR sub-pixel displays, */
|
||||
/* like LCD-screens. It produces 8-bit bitmaps that are 3 times */
|
||||
/* the width of the original glyph outline in pixels, and which use */
|
||||
/* the @FT_PIXEL_MODE_LCD mode. */
|
||||
/* */
|
||||
/* FT_RENDER_MODE_LCD_V :: */
|
||||
/* this mode corresponds to vertical RGB/BGR sub-pixel displays */
|
||||
/* (like PDA screens, rotated LCD displays, etc..). It produces */
|
||||
/* This mode corresponds to vertical RGB/BGR sub-pixel displays */
|
||||
/* (like PDA screens, rotated LCD displays, etc.). It produces */
|
||||
/* 8-bit bitmaps that are 3 times the height of the original */
|
||||
/* glyph outline in pixels and use the @FT_PIXEL_MODE_LCD_V mode */
|
||||
/* glyph outline in pixels and use the @FT_PIXEL_MODE_LCD_V mode. */
|
||||
/* */
|
||||
/* <Note> */
|
||||
/* The LCD-optimized glyph bitmaps produced by FT_Render_Glyph are */
|
||||
/* _not_ _filtered_ to reduce color-fringes. It's up to the caller to */
|
||||
/* perform this pass */
|
||||
/* _not filtered_ to reduce color-fringes. It is up to the caller to */
|
||||
/* perform this pass. */
|
||||
/* */
|
||||
typedef enum FT_Render_Mode_
|
||||
{
|
||||
|
@ -2342,8 +2342,8 @@ FT_BEGIN_HEADER
|
|||
/* ft_render_mode_xxx */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* these constats are deprecated. Use the corresponding */
|
||||
/* @FT_Render_Mode values instead */
|
||||
/* These constats are deprecated. Use the corresponding */
|
||||
/* @FT_Render_Mode values instead. */
|
||||
/* */
|
||||
/* <Values> */
|
||||
/* ft_render_mode_normal :: see @FT_RENDER_MODE_NORMAL */
|
||||
|
@ -2407,35 +2407,38 @@ FT_BEGIN_HEADER
|
|||
|
||||
} FT_Kerning_Mode;
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* ft_kerning_default */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* this constant is deprecated. Please use @FT_KERNING_DEFAULT */
|
||||
/* This constant is deprecated. Please use @FT_KERNING_DEFAULT */
|
||||
/* instead. */
|
||||
/* */
|
||||
#define ft_kerning_default FT_KERNING_DEFAULT
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* ft_kerning_unfitted */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* this constant is deprecated. Please use @FT_KERNING_UNFITTED */
|
||||
/* This constant is deprecated. Please use @FT_KERNING_UNFITTED */
|
||||
/* instead. */
|
||||
/* */
|
||||
#define ft_kerning_unfitted FT_KERNING_UNFITTED
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* ft_kerning_unscaled */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* this constant is deprecated. Please use @FT_KERNING_UNSCALED */
|
||||
/* This constant is deprecated. Please use @FT_KERNING_UNSCALED */
|
||||
/* instead. */
|
||||
/* */
|
||||
#define ft_kerning_unscaled FT_KERNING_UNSCALED
|
||||
|
|
|
@ -118,36 +118,35 @@ FT_BEGIN_HEADER
|
|||
/* FT_PIXEL_MODE_MONO :: */
|
||||
/* A monochrome bitmap, using 1 bit per pixel. Note that pixels */
|
||||
/* are stored in most-significant order (MSB), which means that */
|
||||
/* the left-most pixel in a byte has value 128 */
|
||||
/* the left-most pixel in a byte has value 128. */
|
||||
/* */
|
||||
/* FT_PIXEL_MODE_GRAY :: */
|
||||
/* An 8-bit bitmap, generally used to represent anti-aliased glyph */
|
||||
/* images. Each pixel is stored in one byte. Note that the number */
|
||||
/* of value "gray" levels is stored in the 'num_bytes' field of */
|
||||
/* the @FT_Bitmap structure (it generally is 256) */
|
||||
/* of value "gray" levels is stored in the `num_bytes' field of */
|
||||
/* the @FT_Bitmap structure (it generally is 256). */
|
||||
/* */
|
||||
/* FT_PIXEL_MODE_GRAY2 :: */
|
||||
/* A 2-bit/pixel bitmap, used to represent embedded anti-aliased */
|
||||
/* bitmaps in font files according to the OpenType specification. */
|
||||
/* We haven't found a single font using this format however */
|
||||
/* We haven't found a single font using this format, however. */
|
||||
/* */
|
||||
/* FT_PIXEL_MODE_GRAY4 :: */
|
||||
/* A 4-bit/pixel bitmap, used to represent embedded anti-aliased */
|
||||
/* bitmaps in font files according to the OpenType specification. */
|
||||
/* We haven't found a single font using this format however */
|
||||
/* */
|
||||
/* We haven't found a single font using this format, however. */
|
||||
/* */
|
||||
/* FT_PIXEL_MODE_LCD :: */
|
||||
/* An 8-bit bitmap, used to represent RGB or BGR decimated glyph */
|
||||
/* images used for display on LCD displays; the bitmap's width is */
|
||||
/* three times wider than the original glyph image. See also */
|
||||
/* @FT_RENDER_MODE_LCD */
|
||||
/* @FT_RENDER_MODE_LCD. */
|
||||
/* */
|
||||
/* FT_PIXEL_MODE_LCD_V :: */
|
||||
/* An 8-bit bitmap, used to represent RGB or BGR decimated glyph */
|
||||
/* images used for display on rotated LCD displays; the bitmap's */
|
||||
/* height is three times taller than the original glyph image. */
|
||||
/* See also @FT_RENDER_MODE_LCD_V */
|
||||
/* See also @FT_RENDER_MODE_LCD_V. */
|
||||
/* */
|
||||
typedef enum FT_Pixel_Mode_
|
||||
{
|
||||
|
@ -170,8 +169,8 @@ FT_BEGIN_HEADER
|
|||
/* ft_pixel_mode_xxx */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* a list of deprecated constants. Use the corresponding */
|
||||
/* @FT_Pixel_Mode values instead */
|
||||
/* A list of deprecated constants. Use the corresponding */
|
||||
/* @FT_Pixel_Mode values instead. */
|
||||
/* */
|
||||
/* <Values> */
|
||||
/* ft_pixel_mode_none :: see @FT_PIXEL_MODE_NONE */
|
||||
|
@ -187,14 +186,16 @@ FT_BEGIN_HEADER
|
|||
#define ft_pixel_mode_pal4 FT_PIXEL_MODE_GRAY4
|
||||
|
||||
/* */
|
||||
|
||||
#if 0
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Enum> */
|
||||
/* FT_Palette_Mode */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* THIS TYPE IS DEPRECATED. DO NOT USE IT !! */
|
||||
/* THIS TYPE IS DEPRECATED. DO NOT USE IT! */
|
||||
/* */
|
||||
/* An enumeration type used to describe the format of a bitmap */
|
||||
/* palette, used with ft_pixel_mode_pal4 and ft_pixel_mode_pal8. */
|
||||
|
@ -220,8 +221,10 @@ FT_BEGIN_HEADER
|
|||
} FT_Palette_Mode;
|
||||
|
||||
/* */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Struct> */
|
||||
|
@ -415,79 +418,86 @@ FT_BEGIN_HEADER
|
|||
|
||||
} FT_Outline_Flags;
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* FT_OUTLINE_NONE */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* this constant is deprecated. Please use @FT_OUTLINE_NONE */
|
||||
/* This constant is deprecated. Please use @FT_OUTLINE_NONE */
|
||||
/* instead. */
|
||||
/* */
|
||||
#define zft_outline_none FT_OUTLINE_NONE
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* FT_OUTLINE_OWNER */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* this constant is deprecated. Please use @FT_OUTLINE_OWNER */
|
||||
/* This constant is deprecated. Please use @FT_OUTLINE_OWNER */
|
||||
/* instead. */
|
||||
/* */
|
||||
#define zft_outline_owner FT_OUTLINE_OWNER
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* ft_outline_even_odd_fill */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* this constant is deprecated. Please use @FT_OUTLINE_EVEN_ODD_FILL */
|
||||
/* This constant is deprecated. Please use @FT_OUTLINE_EVEN_ODD_FILL */
|
||||
/* instead. */
|
||||
/* */
|
||||
#define zft_outline_even_off_fill FT_OUTLINE_EVEN_ODD_FILL
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* FT_OUTLINE_REVERSE_FILL */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* this constant is deprecated. Please use @FT_OUTLINE_REVERSE_FILL */
|
||||
/* This constant is deprecated. Please use @FT_OUTLINE_REVERSE_FILL */
|
||||
/* instead. */
|
||||
/* */
|
||||
#define zft_outline_reverse_fill FT_OUTLINE_REVERSE_FILL
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* FT_OUTLINE_IGNORE_DROPOUTS */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* this constant is deprecated. Please use @FT_OUTLINE_IGNORE_DROPOUTS */
|
||||
/* instead. */
|
||||
/* This constant is deprecated. Please use */
|
||||
/* @FT_OUTLINE_IGNORE_DROPOUTS instead. */
|
||||
/* */
|
||||
#define zft_outline_ignore_dropouts FT_OUTLINE_IGNORE_DROPOUTS
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* FT_OUTLINE_HIGH_PRECISION */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* this constant is deprecated. Please use @FT_OUTLINE_HIGH_PRECISION */
|
||||
/* instead. */
|
||||
/* This constant is deprecated. Please use */
|
||||
/* @FT_OUTLINE_HIGH_PRECISION instead. */
|
||||
/* */
|
||||
#define zft_outline_high_precision FT_OUTLINE_HIGH_PRECISION
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* FT_OUTLINE_SINGLE_PASS */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* this constant is deprecated. Please use @FT_OUTLINE_SINGLE_PASS */
|
||||
/* This constant is deprecated. Please use @FT_OUTLINE_SINGLE_PASS */
|
||||
/* instead. */
|
||||
/* */
|
||||
#define zft_outline_single_pass FT_OUTLINE_SINGLE_PASS
|
||||
|
@ -724,27 +734,27 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* <Values> */
|
||||
/* FT_GLYPH_FORMAT_NONE :: */
|
||||
/* the value 0 is reserved and does describe a glyph format */
|
||||
/* The value 0 is reserved and does describe a glyph format. */
|
||||
/* */
|
||||
/* FT_GLYPH_FORMAT_COMPOSITE :: */
|
||||
/* the glyph image is a composite of several other images. This */
|
||||
/* The glyph image is a composite of several other images. This */
|
||||
/* format is _only_ used with @FT_LOAD_FLAG_NO_RECURSE, and is */
|
||||
/* used to report compound glyphs (like accented characters) */
|
||||
/* used to report compound glyphs (like accented characters). */
|
||||
/* */
|
||||
/* FT_GLYPH_FORMAT_BITMAP :: */
|
||||
/* the glyph image is a bitmap, and can be described as a */
|
||||
/* @FT_Bitmap. You'll generally need to access the 'bitmap' field */
|
||||
/* of the @FT_GlyphSlotRec structure to read it. */
|
||||
/* The glyph image is a bitmap, and can be described as an */
|
||||
/* @FT_Bitmap. You generally need to access the `bitmap' field of */
|
||||
/* the @FT_GlyphSlotRec structure to read it. */
|
||||
/* */
|
||||
/* FT_GLYPH_FORMAT_OUTLINE :: The glyph image is a vectorial image */
|
||||
/* the glyph image is a vertorial outline made of line segments */
|
||||
/* and bezier arcs; it can be described as a @FT_Outline and you'll */
|
||||
/* generally want to access the 'outline' field of the */
|
||||
/* FT_GLYPH_FORMAT_OUTLINE :: */
|
||||
/* The glyph image is a vertorial outline made of line segments */
|
||||
/* and Bezier arcs; it can be described as an @FT_Outline; you */
|
||||
/* generally want to access the `outline' field of the */
|
||||
/* @FT_GlyphSlotRec structure to read it. */
|
||||
/* */
|
||||
/* FT_GLYPH_FORMAT_PLOTTER :: */
|
||||
/* the glyph image is a vectorial path with no inside/outside */
|
||||
/* contours. Some Type 1 fonts, like those in the Hershy family, */
|
||||
/* The glyph image is a vectorial path with no inside/outside */
|
||||
/* contours. Some Type 1 fonts, like those in the Hershey family, */
|
||||
/* contain glyphs in this format. These are described as */
|
||||
/* @FT_Outline, but FreeType isn't currently capable of rendering */
|
||||
/* them correctly. */
|
||||
|
@ -760,6 +770,7 @@ FT_BEGIN_HEADER
|
|||
|
||||
} FT_Glyph_Format;
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Enum> */
|
||||
|
@ -782,6 +793,7 @@ FT_BEGIN_HEADER
|
|||
#define ft_glyph_format_outline FT_GLYPH_FORMAT_OUTLINE
|
||||
#define ft_glyph_format_plotter FT_GLYPH_FORMAT_PLOTTER
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/*************************************************************************/
|
||||
/*************************************************************************/
|
||||
|
@ -854,7 +866,7 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* <Note> */
|
||||
/* This structure is used by the span drawing callback type named */
|
||||
/* FT_SpanFunc which takes the y-coordinate of the span as */
|
||||
/* FT_SpanFunc which takes the y-coordinate of the span as a */
|
||||
/* a parameter. */
|
||||
/* */
|
||||
/* The coverage value is always between 0 and 255, even if the number */
|
||||
|
@ -913,13 +925,14 @@ FT_BEGIN_HEADER
|
|||
|
||||
#define FT_Raster_Span_Func FT_SpanFunc
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <FuncType> */
|
||||
/* FT_Raster_BitTest_Func */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* THIS TYPE IS DEPRECATED. DO NOT USE IT */
|
||||
/* THIS TYPE IS DEPRECATED. DO NOT USE IT. */
|
||||
/* */
|
||||
/* A function used as a call-back by the monochrome scan-converter */
|
||||
/* to test whether a given target pixel is already set to the drawing */
|
||||
|
@ -948,7 +961,7 @@ FT_BEGIN_HEADER
|
|||
/* FT_Raster_BitSet_Func */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* THIS TYPE IS DEPRECATED. DO NOT USE IT */
|
||||
/* THIS TYPE IS DEPRECATED. DO NOT USE IT. */
|
||||
/* */
|
||||
/* A function used as a call-back by the monochrome scan-converter */
|
||||
/* to set an individual target pixel. This is crucial to implement */
|
||||
|
@ -969,6 +982,7 @@ FT_BEGIN_HEADER
|
|||
int x,
|
||||
void* user );
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Enum> */
|
||||
|
@ -1045,9 +1059,9 @@ FT_BEGIN_HEADER
|
|||
/* */
|
||||
/* black_spans :: The black span drawing callback. */
|
||||
/* */
|
||||
/* bit_test :: The bit test callback. UNIMPLEMENTED !! */
|
||||
/* bit_test :: The bit test callback. UNIMPLEMENTED! */
|
||||
/* */
|
||||
/* bit_set :: The bit set callback. UNIMPLEMENTED !! */
|
||||
/* bit_set :: The bit set callback. UNIMPLEMENTED! */
|
||||
/* */
|
||||
/* user :: User-supplied data that is passed to each drawing */
|
||||
/* callback. */
|
||||
|
@ -1081,8 +1095,8 @@ FT_BEGIN_HEADER
|
|||
int flags;
|
||||
FT_SpanFunc gray_spans;
|
||||
FT_SpanFunc black_spans;
|
||||
FT_Raster_BitTest_Func bit_test; /* doesn't work !! */
|
||||
FT_Raster_BitSet_Func bit_set; /* doesn't work !! */
|
||||
FT_Raster_BitTest_Func bit_test; /* doesn't work! */
|
||||
FT_Raster_BitSet_Func bit_set; /* doesn't work! */
|
||||
void* user;
|
||||
FT_BBox clip_box;
|
||||
|
||||
|
|
|
@ -70,6 +70,7 @@ FT_BEGIN_HEADER
|
|||
#define FT_Glyph_Copy_Func FT_Glyph_CopyFunc
|
||||
#define FT_Glyph_Prepare_Func FT_Glyph_PrepareFunc
|
||||
|
||||
|
||||
struct FT_Glyph_Class_
|
||||
{
|
||||
FT_UInt glyph_size;
|
||||
|
@ -114,7 +115,6 @@ FT_BEGIN_HEADER
|
|||
#define FTRenderer_setMode FT_Renderer_SetModeFunc
|
||||
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Struct> */
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* TrueType name ID definitions (specification only). */
|
||||
/* */
|
||||
/* Copyright 1996-2001 by */
|
||||
/* Copyright 1996-2002 by */
|
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
@ -31,6 +31,8 @@ FT_BEGIN_HEADER
|
|||
/* Possible values for the `platform' identifier code in the name */
|
||||
/* records of the TTF `name' table. */
|
||||
/* */
|
||||
/*************************************************************************/
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
|
@ -38,41 +40,42 @@ FT_BEGIN_HEADER
|
|||
* TT_PLATFORM_XXX
|
||||
*
|
||||
* @description:
|
||||
* a list of valie values for the 'platform_d' identifier code in
|
||||
* @FT_CharmapRec and @FT_SfntName structures
|
||||
* A list of valid values for the `platform_id' identifier code in
|
||||
* @FT_CharmapRec and @FT_SfntName structures.
|
||||
*
|
||||
* @values:
|
||||
* TT_PLATFORM_APPLE_UNICODE ::
|
||||
* used by Apple to indicate a Unicode character map and/or name entry.
|
||||
* see @TT_APPLE_ID_XXX for corresponding 'encoding_id' values. Note that
|
||||
* name entries in this format are coded as big-endian UCS-2 character
|
||||
* codes _only_ .
|
||||
* Used by Apple to indicate a Unicode character map and/or name entry.
|
||||
* See @TT_APPLE_ID_XXX for corresponding `encoding_id' values. Note
|
||||
* that name entries in this format are coded as big-endian UCS-2
|
||||
* character codes _only_.
|
||||
*
|
||||
* TT_PLATFORM_MACINTOSH ::
|
||||
* used by Apple to indicate a MacOS-specific charmap and/or name entry.
|
||||
* see @TT_MAC_ID_XXX for corresponding 'encoding_id' values. Note that
|
||||
* Used by Apple to indicate a MacOS-specific charmap and/or name entry.
|
||||
* See @TT_MAC_ID_XXX for corresponding `encoding_id' values. Note that
|
||||
* most TrueType fonts contain an Apple roman charmap to be usable on
|
||||
* MacOS systems (even when they contain a Microsoft charmap as well)
|
||||
* MacOS systems (even if they contain a Microsoft charmap as well).
|
||||
*
|
||||
* TT_PLATFORM_ISO ::
|
||||
* this value was used to specify Unicode charmaps. It is however
|
||||
* now deprecated. See @TT_ISO_ID_XXX for a list of
|
||||
* corresponding 'encoding_id' values
|
||||
* This value was used to specify Unicode charmaps. It is however
|
||||
* now deprecated. See @TT_ISO_ID_XXX for a list of corresponding
|
||||
* `encoding_id' values.
|
||||
*
|
||||
* TT_PLATFORM_MICROSOFT ::
|
||||
* used by Microsoft to indicate Windows-specific charmaps. See
|
||||
* @TT_MS_ID_XXX for a list of corresponding 'encoding_id' values.
|
||||
* note that most fonts contain a Unicode charmap using
|
||||
* ( @@TT_PLATFORM_MICROSOFT, @TT_MS_ID_UNICODE_CS )
|
||||
* Used by Microsoft to indicate Windows-specific charmaps. See
|
||||
* @TT_MS_ID_XXX for a list of corresponding `encoding_id' values.
|
||||
* Note that most fonts contain a Unicode charmap using
|
||||
* (@TT_PLATFORM_MICROSOFT, @TT_MS_ID_UNICODE_CS).
|
||||
*
|
||||
* TT_PLATFORM_CUSTOM ::
|
||||
* used to indicate application-specific charmaps.
|
||||
* Used to indicate application-specific charmaps.
|
||||
*
|
||||
* TT_PLATFORM_ADOBE ::
|
||||
* this value isn't part of any font format specification, but is used
|
||||
* by FreeType to report Adobe-specific charmaps in a @FT_CharMapRec
|
||||
* structure. See @TT_ADOBE_ID_XXX
|
||||
* This value isn't part of any font format specification, but is used
|
||||
* by FreeType to report Adobe-specific charmaps in an @FT_CharMapRec
|
||||
* structure. See @TT_ADOBE_ID_XXX.
|
||||
*/
|
||||
|
||||
#define TT_PLATFORM_APPLE_UNICODE 0
|
||||
#define TT_PLATFORM_MACINTOSH 1
|
||||
#define TT_PLATFORM_ISO 2 /* deprecated */
|
||||
|
@ -87,16 +90,22 @@ FT_BEGIN_HEADER
|
|||
* TT_APPLE_ID_XXX
|
||||
*
|
||||
* @description:
|
||||
* a list of valid values for the 'encoding_id' for
|
||||
* @TT_PLATFORM_APPLE_UNICODE charmaps and name entries
|
||||
* A list of valid values for the `encoding_id' for
|
||||
* @TT_PLATFORM_APPLE_UNICODE charmaps and name entries.
|
||||
*
|
||||
* @values:
|
||||
* TT_APPLE_ID_DEFAULT :: Unicode 1.0
|
||||
* TT_APPLE_ID_UNICODE_1_1 :: Unicode 1.1, specifies Hangul at U+34xx
|
||||
* TT_APPLE_ID_ISO_10646 :: deprecated
|
||||
* TT_APPLE_ID_UNICODE_2_0 :: Unicode 2.0 and beyond (UTF-16 BMP only)
|
||||
* TT_APPLE_ID_UNICODE_32 :: UTF-32 (Adobe proposal for OpenType)
|
||||
* TT_APPLE_ID_DEFAULT ::
|
||||
* Unicode version 1.0.
|
||||
* TT_APPLE_ID_UNICODE_1_1 ::
|
||||
* Unicode 1.1; specifies Hangul characters starting at U+34xx.
|
||||
* TT_APPLE_ID_ISO_10646 ::
|
||||
* Deprecated.
|
||||
* TT_APPLE_ID_UNICODE_2_0 ::
|
||||
* Unicode 2.0 and beyond (UTF-16 BMP only).
|
||||
* TT_APPLE_ID_UNICODE_32 ::
|
||||
* UTF-32 (Adobe proposal for OpenType).
|
||||
*/
|
||||
|
||||
#define TT_APPLE_ID_DEFAULT 0 /* Unicode 1.0 */
|
||||
#define TT_APPLE_ID_UNICODE_1_1 1 /* specify Hangul at U+34xx */
|
||||
#define TT_APPLE_ID_ISO_10646 2 /* deprecated */
|
||||
|
@ -110,8 +119,8 @@ FT_BEGIN_HEADER
|
|||
* TT_MAC_ID_XXX
|
||||
*
|
||||
* @description:
|
||||
* a list of valid values for the 'encoding_id' for
|
||||
* @TT_PLATFORM_MACINTOSH charmaps and name entries
|
||||
* A list of valid values for the `encoding_id' for
|
||||
* @TT_PLATFORM_MACINTOSH charmaps and name entries.
|
||||
*
|
||||
* @values:
|
||||
* TT_MAC_ID_ROMAN ::
|
||||
|
@ -149,6 +158,7 @@ FT_BEGIN_HEADER
|
|||
* TT_MAC_ID_SINDHI ::
|
||||
* TT_MAC_ID_UNINTERP ::
|
||||
*/
|
||||
|
||||
#define TT_MAC_ID_ROMAN 0
|
||||
#define TT_MAC_ID_JAPANESE 1
|
||||
#define TT_MAC_ID_TRADITIONAL_CHINESE 2
|
||||
|
@ -191,16 +201,20 @@ FT_BEGIN_HEADER
|
|||
* TT_ISO_ID_XXX
|
||||
*
|
||||
* @description:
|
||||
* a list of valid values for the 'encoding_id' for
|
||||
* @TT_PLATFORM_ISO charmaps and name entries
|
||||
* A list of valid values for the `encoding_id' for
|
||||
* @TT_PLATFORM_ISO charmaps and name entries.
|
||||
*
|
||||
* their use is now deprecated
|
||||
* Their use is now deprecated.
|
||||
*
|
||||
* @values:
|
||||
* TT_ISO_ID_7BIT_ASCII :: ASCII
|
||||
* TT_ISO_ID_10646 :: ISO/10646
|
||||
* TT_ISO_ID_8859_1 :: a.k.a. Latin-1
|
||||
* TT_ISO_ID_7BIT_ASCII ::
|
||||
* ASCII.
|
||||
* TT_ISO_ID_10646 ::
|
||||
* ISO/10646.
|
||||
* TT_ISO_ID_8859_1 ::
|
||||
* Also known as Latin-1.
|
||||
*/
|
||||
|
||||
#define TT_ISO_ID_7BIT_ASCII 0
|
||||
#define TT_ISO_ID_10646 1
|
||||
#define TT_ISO_ID_8859_1 2
|
||||
|
@ -212,40 +226,41 @@ FT_BEGIN_HEADER
|
|||
* TT_MS_ID_XXX
|
||||
*
|
||||
* @description:
|
||||
* a list of valid values for the 'encoding_id' for
|
||||
* @TT_PLATFORM_MICROSOFT charmaps and name entries
|
||||
* A list of valid values for the `encoding_id' for
|
||||
* @TT_PLATFORM_MICROSOFT charmaps and name entries.
|
||||
*
|
||||
* @values:
|
||||
* TT_MS_ID_SYMBOLS_CS ::
|
||||
* correspond to symbol encodings. see @FT_ENCODING_MS_SYMBOL
|
||||
* Corresponds to symbol encodings. see @FT_ENCODING_MS_SYMBOL.
|
||||
*
|
||||
* TT_MS_ID_UNICODE_CS ::
|
||||
* correspond to a Microsoft WGL4 charmap, matching Unicode. See
|
||||
* @FT_ENCODING_UNICODE
|
||||
* Corresponds to a Microsoft WGL4 charmap, matching Unicode. See
|
||||
* @FT_ENCODING_UNICODE.
|
||||
*
|
||||
* TT_MS_ID_SJIS ::
|
||||
* corresponds to Microsoft S-JIS Japanese encoding.
|
||||
* See @FT_ENCODING_MS_SJIS
|
||||
* Corresponds to Microsoft SJIS Japanese encoding.
|
||||
* See @FT_ENCODING_MS_SJIS.
|
||||
*
|
||||
* TT_MS_ID_GB2312 ::
|
||||
* corresponds to Microsoft Simplified Chinese as used in China. See
|
||||
* @FT_ENCODING_MS_GB2312
|
||||
* Corresponds to Microsoft Simplified Chinese as used in Mainland
|
||||
* China. See @FT_ENCODING_MS_GB2312.
|
||||
*
|
||||
* TT_MS_ID_BIG_5 ::
|
||||
* corresponds to Microsoft Simplified Chinese as used in Taiwan and
|
||||
* Hong Kong. See @FT_ENCODING_MS_BIG5
|
||||
* Corresponds to Microsoft Traditional Chinese as used in Taiwan and
|
||||
* Hong Kong. See @FT_ENCODING_MS_BIG5.
|
||||
*
|
||||
* TT_MS_ID_WANSUNG ::
|
||||
* corresponds to Microsoft Korean Wansung encoding. See
|
||||
* @FT_ENCODING_MS_WANSUNG
|
||||
* Corresponds to Microsoft Korean Wansung encoding. See
|
||||
* @FT_ENCODING_MS_WANSUNG.
|
||||
*
|
||||
* TT_MS_ID_JOHAB ::
|
||||
* corresponds to Microsoft Johab encoding. See @FT_ENCODING_MS_JOHAB
|
||||
* Corresponds to Microsoft Johab encoding. See @FT_ENCODING_MS_JOHAB.
|
||||
*
|
||||
* TT_MS_ID_UCS_4 ::
|
||||
* corresponds to UCS-4 or UTF-32 charmaps. This is a recent Adobe proposal
|
||||
* for OpenType.
|
||||
* Corresponds to UCS-4 or UTF-32 charmaps. This is a recent Adobe
|
||||
* proposal for OpenType.
|
||||
*/
|
||||
|
||||
#define TT_MS_ID_SYMBOL_CS 0
|
||||
#define TT_MS_ID_UNICODE_CS 1
|
||||
#define TT_MS_ID_SJIS 2
|
||||
|
@ -256,28 +271,24 @@ FT_BEGIN_HEADER
|
|||
#define TT_MS_ID_UCS_4 10
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* possible values of the platform specific encoding identifier field in */
|
||||
/* the name records of the TTF `name' table if the `platform' identifier */
|
||||
/* code is TT_PLATFORM_ADOBE. */
|
||||
/* */
|
||||
/* These are artificial values defined ad-hoc by FreeType. */
|
||||
/* */
|
||||
/***********************************************************************
|
||||
*
|
||||
* @enum:
|
||||
* TT_ADOBE_ID_XXX
|
||||
*
|
||||
* @description:
|
||||
* a list of valid values for the 'encoding_id' for
|
||||
* @TT_PLATFORM_ADOBE charmaps. This is a FreeType-specific list !!
|
||||
* A list of valid values for the `encoding_id' for
|
||||
* @TT_PLATFORM_ADOBE charmaps. This is a FreeType-specific extension!
|
||||
*
|
||||
* @values:
|
||||
* TT_ADOBE_ID_STANDARD :: Adobe standard encoding
|
||||
* TT_ADOBE_ID_EXPERT :: Adobe expert encoding
|
||||
* TT_ADOBE_ID_CUSTOM :: Adobe custom encoding
|
||||
* TT_ADOBE_ID_STANDARD ::
|
||||
* Adobe standard encoding.
|
||||
* TT_ADOBE_ID_EXPERT ::
|
||||
* Adobe expert encoding.
|
||||
* TT_ADOBE_ID_CUSTOM ::
|
||||
* Adobe custom encoding.
|
||||
*/
|
||||
|
||||
#define TT_ADOBE_ID_STANDARD 0
|
||||
#define TT_ADOBE_ID_EXPERT 1
|
||||
#define TT_ADOBE_ID_CUSTOM 2
|
||||
|
|
|
@ -347,8 +347,8 @@
|
|||
/* ah_outline_save */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* Saves the content of a given AH_OutlineRec object into a face's glyph */
|
||||
/* slot. */
|
||||
/* Saves the contents of a given AH_OutlineRec object into a face's */
|
||||
/* glyph slot. */
|
||||
/* */
|
||||
FT_LOCAL_DEF( void )
|
||||
ah_outline_save( AH_Outline outline,
|
||||
|
@ -1051,12 +1051,14 @@
|
|||
AH_Segment seg1;
|
||||
AH_Segment seg2;
|
||||
|
||||
|
||||
/* now compare each segment to the others */
|
||||
for ( seg1 = segments; seg1 < segment_limit; seg1++ )
|
||||
{
|
||||
FT_Pos best_score;
|
||||
AH_Segment best_segment;
|
||||
|
||||
|
||||
/* the fake segments are introduced to hint the metrics -- */
|
||||
/* we must never link them to anything */
|
||||
if ( seg1->first == seg1->last )
|
||||
|
|
|
@ -1087,6 +1087,7 @@
|
|||
AH_Outline outline = hinter->glyph;
|
||||
AH_Loader gloader = hinter->loader;
|
||||
|
||||
|
||||
/* load the glyph */
|
||||
error = FT_Load_Glyph( face, glyph_index, load_flags );
|
||||
if ( error )
|
||||
|
@ -1443,16 +1444,16 @@
|
|||
|
||||
#ifdef DEBUG_HINTER
|
||||
hinter->no_horz_hints = ah_debug_disable_vert; /* not a bug, the meaning */
|
||||
hinter->no_vert_hints = ah_debug_disable_horz; /* of h/v is inverted !! */
|
||||
hinter->no_vert_hints = ah_debug_disable_horz; /* of h/v is inverted! */
|
||||
#endif
|
||||
|
||||
/* we snap the width of vertical stems for the monochrome and horizontal */
|
||||
/* LCD rendering targets only. Corresponds to X snapping */
|
||||
/* we snap the width of vertical stems for the monochrome and */
|
||||
/* horizontal LCD rendering targets only. Corresponds to X snapping. */
|
||||
hinter->no_horz_snapping = FT_BOOL( hint_mode == FT_RENDER_MODE_NORMAL ||
|
||||
hint_mode == FT_RENDER_MODE_LCD_V );
|
||||
|
||||
/* we snap the width of horizontal stems for the monochrome and vertical */
|
||||
/* LCD rendering targets only. Corresponds to Y snapping */
|
||||
/* we snap the width of horizontal stems for the monochrome and */
|
||||
/* vertical LCD rendering targets only. Corresponds to Y snapping. */
|
||||
hinter->no_vert_snapping = FT_BOOL( hint_mode == FT_RENDER_MODE_NORMAL ||
|
||||
hint_mode == FT_RENDER_MODE_LCD );
|
||||
|
||||
|
|
|
@ -183,7 +183,8 @@ FT_BEGIN_HEADER
|
|||
/* AH_PointRec */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* A structure used to model an outline point to the AH_OutlineRec type. */
|
||||
/* A structure used to model an outline point to the AH_OutlineRec */
|
||||
/* type. */
|
||||
/* */
|
||||
/* <Fields> */
|
||||
/* flags :: The current point hint flags. */
|
||||
|
|
|
@ -575,11 +575,15 @@
|
|||
if ( face->root.internal->incremental_interface )
|
||||
{
|
||||
FT_Data data;
|
||||
FT_Error error = face->root.internal->incremental_interface->funcs->get_glyph_data(
|
||||
FT_Error error =
|
||||
face->root.internal->incremental_interface->funcs->get_glyph_data(
|
||||
face->root.internal->incremental_interface->object,
|
||||
glyph_index, &data );
|
||||
|
||||
|
||||
*pointer = (FT_Byte*)data.pointer;
|
||||
*length = data.length;
|
||||
|
||||
return error;
|
||||
}
|
||||
else
|
||||
|
@ -587,6 +591,8 @@
|
|||
|
||||
{
|
||||
CFF_Font cff = (CFF_Font)(face->extra.data);
|
||||
|
||||
|
||||
return cff_index_access_element( &cff->charstrings_index, glyph_index,
|
||||
pointer, length );
|
||||
}
|
||||
|
@ -608,8 +614,11 @@
|
|||
if ( face->root.internal->incremental_interface )
|
||||
{
|
||||
FT_Data data;
|
||||
|
||||
|
||||
data.pointer = *pointer;
|
||||
data.length = length;
|
||||
|
||||
face->root.internal->incremental_interface->funcs->free_glyph_data(
|
||||
face->root.internal->incremental_interface->object,&data );
|
||||
}
|
||||
|
@ -618,6 +627,8 @@
|
|||
|
||||
{
|
||||
CFF_Font cff = (CFF_Font)(face->extra.data);
|
||||
|
||||
|
||||
cff_index_forget_element( &cff->charstrings_index, pointer );
|
||||
}
|
||||
}
|
||||
|
@ -638,6 +649,7 @@
|
|||
FT_Byte* charstring;
|
||||
FT_ULong charstring_len;
|
||||
|
||||
|
||||
#ifdef FT_CONFIG_OPTION_INCREMENTAL
|
||||
/* Incremental fonts don't necessarily have valid charsets. */
|
||||
/* They use the character code, not the glyph index, in this case. */
|
||||
|
@ -651,6 +663,7 @@
|
|||
{
|
||||
CFF_Font cff = (CFF_Font)(face->extra.data);
|
||||
|
||||
|
||||
bchar_index = cff_lookup_glyph_by_stdcharcode( cff, bchar );
|
||||
achar_index = cff_lookup_glyph_by_stdcharcode( cff, achar );
|
||||
}
|
||||
|
@ -2335,6 +2348,8 @@
|
|||
/* cffload.c. */
|
||||
{
|
||||
CFF_IndexRec csindex = cff->charstrings_index;
|
||||
|
||||
|
||||
glyph->root.control_data =
|
||||
csindex.bytes + csindex.offsets[glyph_index] - 1;
|
||||
glyph->root.control_len =
|
||||
|
|
|
@ -123,7 +123,7 @@
|
|||
|
||||
|
||||
FT_LOCAL_DEF( FT_Error )
|
||||
CID_Size_Init( CID_Size size )
|
||||
cid_size_init( CID_Size size )
|
||||
{
|
||||
FT_Error error = 0;
|
||||
PSH_Globals_Funcs funcs = cid_size_get_globals_funcs( size );
|
||||
|
|
|
@ -123,7 +123,7 @@ FT_BEGIN_HEADER
|
|||
|
||||
|
||||
FT_LOCAL( FT_Error )
|
||||
CID_Size_Init( CID_Size size );
|
||||
cid_size_init( CID_Size size );
|
||||
|
||||
|
||||
FT_LOCAL( FT_Error )
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
(FT_Face_InitFunc) cid_face_init,
|
||||
(FT_Face_DoneFunc) cid_face_done,
|
||||
|
||||
(FT_Size_InitFunc) CID_Size_Init,
|
||||
(FT_Size_InitFunc) cid_size_init,
|
||||
(FT_Size_DoneFunc) cid_size_done,
|
||||
(FT_Slot_InitFunc) cid_slot_init,
|
||||
(FT_Slot_DoneFunc) cid_slot_done,
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
t1_builder_done,
|
||||
t1_builder_check_points,
|
||||
t1_builder_add_point,
|
||||
T1_Builder_Add_Point1,
|
||||
t1_builder_add_point1,
|
||||
t1_builder_add_contour,
|
||||
t1_builder_start_point,
|
||||
t1_builder_close_contour
|
||||
|
|
|
@ -1270,7 +1270,7 @@
|
|||
|
||||
/* check space for a new on-curve point, then add it */
|
||||
FT_LOCAL_DEF( FT_Error )
|
||||
T1_Builder_Add_Point1( T1_Builder builder,
|
||||
t1_builder_add_point1( T1_Builder builder,
|
||||
FT_Pos x,
|
||||
FT_Pos y )
|
||||
{
|
||||
|
@ -1328,7 +1328,7 @@
|
|||
builder->path_begun = 1;
|
||||
error = t1_builder_add_contour( builder );
|
||||
if ( !error )
|
||||
error = T1_Builder_Add_Point1( builder, x, y );
|
||||
error = t1_builder_add_point1( builder, x, y );
|
||||
}
|
||||
return error;
|
||||
}
|
||||
|
|
|
@ -164,7 +164,7 @@ FT_BEGIN_HEADER
|
|||
FT_Byte flag );
|
||||
|
||||
FT_LOCAL( FT_Error )
|
||||
T1_Builder_Add_Point1( T1_Builder builder,
|
||||
t1_builder_add_point1( T1_Builder builder,
|
||||
FT_Pos x,
|
||||
FT_Pos y );
|
||||
|
||||
|
|
|
@ -350,7 +350,7 @@
|
|||
#define start_point t1_builder_start_point
|
||||
#define check_points t1_builder_check_points
|
||||
#define add_point t1_builder_add_point
|
||||
#define add_point1 T1_Builder_Add_Point1
|
||||
#define add_point1 t1_builder_add_point1
|
||||
#define add_contour t1_builder_add_contour
|
||||
#define close_contour t1_builder_close_contour
|
||||
|
||||
|
|
|
@ -503,18 +503,18 @@
|
|||
/* the stem is less than one pixel, we will center it */
|
||||
/* around the nearest pixel center */
|
||||
/* */
|
||||
pos = ( pos + (len >> 1) & -64 );
|
||||
pos = ( pos + ( (len >> 1) & -64 ) );
|
||||
len = 64;
|
||||
}
|
||||
else
|
||||
{
|
||||
FT_Pos delta = len - dim->stdw.widths[0].cur;
|
||||
FT_Pos Delta = len - dim->stdw.widths[0].cur;
|
||||
|
||||
|
||||
if ( delta < 0 )
|
||||
delta = -delta;
|
||||
if ( Delta < 0 )
|
||||
Delta = -Delta;
|
||||
|
||||
if ( delta < 40 )
|
||||
if ( Delta < 40 )
|
||||
{
|
||||
len = dim->stdw.widths[0].cur;
|
||||
if ( len < 32 )
|
||||
|
@ -523,20 +523,20 @@
|
|||
|
||||
if ( len < 3 * 64 )
|
||||
{
|
||||
delta = ( len & 63 );
|
||||
Delta = ( len & 63 );
|
||||
len &= -64;
|
||||
|
||||
if ( delta < 10 )
|
||||
len += delta;
|
||||
if ( Delta < 10 )
|
||||
len += Delta;
|
||||
|
||||
else if ( delta < 32 )
|
||||
else if ( Delta < 32 )
|
||||
len += 10;
|
||||
|
||||
else if ( delta < 54 )
|
||||
else if ( Delta < 54 )
|
||||
len += 54;
|
||||
|
||||
else
|
||||
len += delta;
|
||||
len += Delta;
|
||||
}
|
||||
else
|
||||
len = ( len + 32 ) & -64;
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
FT_Int n;
|
||||
FT_Vector* vec;
|
||||
|
||||
|
||||
if ( hmul )
|
||||
for ( vec = outline->points, n = 0; n < outline->n_points; n++, vec++ )
|
||||
vec->x *= hmul;
|
||||
|
@ -201,6 +202,7 @@
|
|||
FT_Int n;
|
||||
FT_Vector* vec;
|
||||
|
||||
|
||||
if ( hmul )
|
||||
for ( vec = outline->points, n = 0; n < outline->n_points; n++, vec++ )
|
||||
vec->x /= hmul;
|
||||
|
@ -210,7 +212,6 @@
|
|||
vec->y /= vmul;
|
||||
}
|
||||
|
||||
|
||||
FT_Outline_Translate( outline, cbox.xMin, cbox.yMin );
|
||||
|
||||
if ( error )
|
||||
|
@ -228,7 +229,6 @@
|
|||
}
|
||||
|
||||
|
||||
|
||||
/* convert a slot's glyph image into a bitmap */
|
||||
static FT_Error
|
||||
ft_smooth_render( FT_Renderer render,
|
||||
|
@ -268,7 +268,6 @@
|
|||
}
|
||||
|
||||
|
||||
|
||||
FT_CALLBACK_TABLE_DEF
|
||||
const FT_Renderer_Class ft_smooth_renderer_class =
|
||||
{
|
||||
|
|
|
@ -164,7 +164,7 @@
|
|||
(FT_Byte**)type1->glyph_names,
|
||||
face->blend,
|
||||
0,
|
||||
0,
|
||||
FT_RENDER_MODE_NORMAL,
|
||||
T1_Parse_Glyph );
|
||||
if ( error )
|
||||
return error;
|
||||
|
|
Loading…
Reference in New Issue