2000-12-08 03:42:29 +01:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* cfftoken.h */
|
|
|
|
/* */
|
2002-03-30 17:41:09 +01:00
|
|
|
/* CFF token definitions (specification only). */
|
2000-12-08 03:42:29 +01:00
|
|
|
/* */
|
Avoid overwriting of numeric font dictionary entries for synthetic
fonts. Additionally, some entries were handled as `integer' instead
of `number'.
* include/freetype/internal/psaux.h (T1_FieldType): Add
T1_FIELD_TYPE_BOOL_P, T1_FIELD_TYPE_INTEGER_P, and
T1_FIELD_TYPE_FIXED_P.
(T1_FIELD_BOOL_P, T1_FIELD_NUM_P, T1_FIELD_FIXED_P): New macros.
* src/psaux/psobjs.c (ps_parser_load_field): Handle new field types.
* include/freetype/internal/cfftypes.h (CFF_FontRecDict),
src/cff/cfftoken.h: Change type of underline_position and
underline_thickness to FT_Fixed.
* src/cff/cffload.c (cff_subfont_load): Fix default values of
underline_position and underline_thickness.
* src/cff/cffobjs.c (cff_face_init): Set underline_position
and underline_thickness in `root'.
* include/freetype/internal/t1types.h (T1_Font): Change point_type
and stroke_width to pointers.
* include/freetype/t1tables.h (PS_FontInfo): Change italic_angle,
is_fixed_pitch, underline_position, and underline_thickness to
pointers.
* src/type1/t1tokens.h: Change italic_angle, is_fixed_pitch,
underline_position, and underline_thickness to pointers. Change
the type of the latter two to `fixed'.
Change type of stroke_width to `fixed' and make it a pointer.
Change paint_type to pointer.
* src/type1/t1objs.c (T1_Face_Done): Updated.
(T1_Face_Init): Updated.
Fix assignment of underline_position and underline_thickness.
* src/cid/cidtoken.h: Change italic_angle, is_fixed_pitch,
underline_position, and underline_thickness to pointers. Change
the type of the latter two to `fixed'.
Change type of stroke_width to `fixed'.
* src/cid/cidobjs.c (cid_face_done): Updated.
(cid_face_init): Updated.
Fix assignment of underline_position and underline_thickness.
* src/type42/t42parse.c: Change italic_angle, is_fixed_pitch,
underline_position, and underline_thickness to pointers. Change the
type of the latter two to `fixed'.
Change type of stroke_width to `fixed' and make it a pointer.
Change paint_type to pointer.
* src/type42/t42objs.c (T42_Face_Init): Updated.
Fix assignment of underline_position and underline_thickness.
(T42_Face_Done): Updated.
* src/base/ftobjs.c (open_face_from_buffer): Fix compiler warning.
* src/pshinter/pshglob.c, src/pshinter/pshglob.h
(psh_globals_set_scale): Make it a local function.
* test/gview.c: Fix remaming ps3->ps typo.
Formatting.
2003-05-30 11:12:50 +02:00
|
|
|
/* Copyright 1996-2001, 2002, 2003 by */
|
2000-12-08 03:42:29 +01:00
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
|
|
|
/* */
|
|
|
|
/* This file is part of the FreeType project, and may only be used, */
|
|
|
|
/* modified, and distributed under the terms of the FreeType project */
|
|
|
|
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
|
|
|
|
/* this file you indicate that you have read the license and */
|
|
|
|
/* understand and accept it fully. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#undef FT_STRUCTURE
|
2002-03-14 09:57:10 +01:00
|
|
|
#define FT_STRUCTURE CFF_FontRecDictRec
|
2000-12-08 03:42:29 +01:00
|
|
|
|
|
|
|
#undef CFFCODE
|
2002-03-30 17:41:09 +01:00
|
|
|
#define CFFCODE CFFCODE_TOPDICT
|
2000-12-08 03:42:29 +01:00
|
|
|
|
2000-12-08 17:17:16 +01:00
|
|
|
CFF_FIELD_STRING ( 0, version )
|
|
|
|
CFF_FIELD_STRING ( 1, notice )
|
2000-12-08 03:42:29 +01:00
|
|
|
CFF_FIELD_STRING ( 0x100, copyright )
|
2000-12-08 17:17:16 +01:00
|
|
|
CFF_FIELD_STRING ( 2, full_name )
|
|
|
|
CFF_FIELD_STRING ( 3, family_name )
|
|
|
|
CFF_FIELD_STRING ( 4, weight )
|
2000-12-08 03:42:29 +01:00
|
|
|
CFF_FIELD_BOOL ( 0x101, is_fixed_pitch )
|
|
|
|
CFF_FIELD_FIXED ( 0x102, italic_angle )
|
Avoid overwriting of numeric font dictionary entries for synthetic
fonts. Additionally, some entries were handled as `integer' instead
of `number'.
* include/freetype/internal/psaux.h (T1_FieldType): Add
T1_FIELD_TYPE_BOOL_P, T1_FIELD_TYPE_INTEGER_P, and
T1_FIELD_TYPE_FIXED_P.
(T1_FIELD_BOOL_P, T1_FIELD_NUM_P, T1_FIELD_FIXED_P): New macros.
* src/psaux/psobjs.c (ps_parser_load_field): Handle new field types.
* include/freetype/internal/cfftypes.h (CFF_FontRecDict),
src/cff/cfftoken.h: Change type of underline_position and
underline_thickness to FT_Fixed.
* src/cff/cffload.c (cff_subfont_load): Fix default values of
underline_position and underline_thickness.
* src/cff/cffobjs.c (cff_face_init): Set underline_position
and underline_thickness in `root'.
* include/freetype/internal/t1types.h (T1_Font): Change point_type
and stroke_width to pointers.
* include/freetype/t1tables.h (PS_FontInfo): Change italic_angle,
is_fixed_pitch, underline_position, and underline_thickness to
pointers.
* src/type1/t1tokens.h: Change italic_angle, is_fixed_pitch,
underline_position, and underline_thickness to pointers. Change
the type of the latter two to `fixed'.
Change type of stroke_width to `fixed' and make it a pointer.
Change paint_type to pointer.
* src/type1/t1objs.c (T1_Face_Done): Updated.
(T1_Face_Init): Updated.
Fix assignment of underline_position and underline_thickness.
* src/cid/cidtoken.h: Change italic_angle, is_fixed_pitch,
underline_position, and underline_thickness to pointers. Change
the type of the latter two to `fixed'.
Change type of stroke_width to `fixed'.
* src/cid/cidobjs.c (cid_face_done): Updated.
(cid_face_init): Updated.
Fix assignment of underline_position and underline_thickness.
* src/type42/t42parse.c: Change italic_angle, is_fixed_pitch,
underline_position, and underline_thickness to pointers. Change the
type of the latter two to `fixed'.
Change type of stroke_width to `fixed' and make it a pointer.
Change paint_type to pointer.
* src/type42/t42objs.c (T42_Face_Init): Updated.
Fix assignment of underline_position and underline_thickness.
(T42_Face_Done): Updated.
* src/base/ftobjs.c (open_face_from_buffer): Fix compiler warning.
* src/pshinter/pshglob.c, src/pshinter/pshglob.h
(psh_globals_set_scale): Make it a local function.
* test/gview.c: Fix remaming ps3->ps typo.
Formatting.
2003-05-30 11:12:50 +02:00
|
|
|
CFF_FIELD_FIXED ( 0x103, underline_position )
|
|
|
|
CFF_FIELD_FIXED ( 0x104, underline_thickness )
|
2000-12-08 03:42:29 +01:00
|
|
|
CFF_FIELD_NUM ( 0x105, paint_type )
|
|
|
|
CFF_FIELD_NUM ( 0x106, charstring_type )
|
|
|
|
CFF_FIELD_CALLBACK( 0x107, font_matrix )
|
2000-12-08 17:17:16 +01:00
|
|
|
CFF_FIELD_NUM ( 13, unique_id )
|
|
|
|
CFF_FIELD_CALLBACK( 5, font_bbox )
|
2000-12-08 03:42:29 +01:00
|
|
|
CFF_FIELD_NUM ( 0x108, stroke_width )
|
2000-12-08 17:17:16 +01:00
|
|
|
CFF_FIELD_NUM ( 15, charset_offset )
|
|
|
|
CFF_FIELD_NUM ( 16, encoding_offset )
|
|
|
|
CFF_FIELD_NUM ( 17, charstrings_offset )
|
|
|
|
CFF_FIELD_CALLBACK( 18, private_dict )
|
2000-12-08 03:42:29 +01:00
|
|
|
CFF_FIELD_NUM ( 0x114, synthetic_base )
|
2003-12-11 18:55:58 +01:00
|
|
|
CFF_FIELD_STRING ( 0x115, embedded_postscript )
|
2000-12-08 03:42:29 +01:00
|
|
|
|
|
|
|
#if 0
|
2003-12-11 18:55:58 +01:00
|
|
|
CFF_FIELD_STRING ( 0x116, base_font_name )
|
2000-12-08 03:42:29 +01:00
|
|
|
CFF_FIELD_DELTA ( 0x117, base_font_blend, 16 )
|
|
|
|
CFF_FIELD_CALLBACK( 0x118, multiple_master )
|
Make otlayout module compile (without actually working).
* src/otlayout/*: s/OTL_Valid/OTL_Validator/.
s/NULL/0/.
* src/otlayout/otlayout.h: Fix various typos.
(OTL_Bool): New typedef.
(OTL_Int, OTL_Long, OTL_Int16, OTL_Int32): Use `signed' keyword.
(OTL_Err_InvalidArgument): Removed.
(OTL_Err_InvalidData, OTL_Err_InvalidSize): New enum values.
(OTL_MAKE_TAG): Add missing parenthesis.
(OTL_INVALID_DATA): Use OTL_Err_InvalidData.
(OTL_INVALID_TOO_SHORT): Use OTL_Err_InvalidSize.
(OTL_INVALID_FORMAT, OTL_INVALID_OFFSET): New macros.
* src/otlayout/otlgpos.c: s/FT_/OTL_/.
s/OTL_Short/OTL_Int16/.
(otl_gpos_pairset_validate): Add return type.
(otl_base_array_validate): Fix call to otl_anchor_validate.
(otl_liga_array_validate): Fix call to otl_liga_attach_validate.
(otl_gpos_lookup5_validate): Fix typos.
(otl_gpos_lookup6_validate): Fix call to otl_mark2_array_validate.
(otl_gpos_lookup7_validate): Comment out unfinished code.
Fix typos.
* src/otlayout/otlgsub.c: Add forward declaration for
otl_gsub_validate_funcs.
(otl_gsub_lookup1_apply, otl_gsub_lookup2_apply,
otl_gsub_lookup3_apply): Fix call to otl_parser_check_property.
s/otl_coverage_lookup/otl_coverage_get_index/.
(otl_ligature_validate): Add missing variable declaration.
(otl_sub_rule_validate): Fix typo.
(otl_sub_class_rule_validate): Add missing variable declaration.
Fix typo.
(otl_gsub_lookup5_validate): Fix typo.
(otl_gsub_lookup6_validate): Fix call to
otl_chain_sub_class_set_validate.
(otl_gsub_validate_funcs): Don't use `const'.
* src/otlayout/otlcommn.c (otl_class_definition_get_value,
otl_device_table_validate, otl_device_table_get_delta,
otl_lookup_validate, otl_script_validate): Add missing
variable declarations.
(otl_lookup_list_validate): Comment out first definition.
(otl_lookup_list_foreach, otl_feature_list_foreach): Comment out.
(otl_feature_list_validate):
s/otl_feature_table_validate/otl_feature_validate/.
(otl_script_list_validate):
s/otl_script_table_validate/otl_script_validate/.
* src/otlayout/otlcommn.h: Comment out first declaration.
(otl_lookup_list_foreach, otl_feature_list_foreach): Comment out.
* src/otlayout/otlbase.c (otl_base_coord_validate): Fix call to
otl_device_table_validate.
(otl_base_scsript_validate): Add missing variable declarations.
(otl_base_script_list_validate): Fix call to
otl_base_script_validate.
(otl_axis_table_validate): Fix calls to otl_base_tag_list_validate
and otl_base_script_list_validate.
(otl_base_validate): Fix calls to otl_axis_table_validate.
* src/otlayout/otlgdef.c (otl_attach_list_validate): Fix call to
otl_attach_point_validate.
(otl_caret_value_validate): Add missing variable declaration.
Fix call to otl_device_table_validate.
(otl_ligature_glyph_validate): Fix call to otl_caret_value_validate.
(otl_ligature_caret_list_validate): Fix call to
otl_ligature_glyph_validate.
(otl_gdef_validate): Fix calls to otl_class_definition_validate,
otl_attach_list_validate, otl_ligature_caret_list_validate, and
otl_class_definition_validate.
* src/otlayout/otltable.h (otl_table_validate, otl_table_init,
otl_table_set_script): Comment out.
* src/otlayout/otlparse.h (OTL_ParserRec):
s/OTL_Alternate/OTL_GSUB_Alternate/.
(OTL_ParseError): Add OTL_Err_Parser_Memory and
OTL_Err_Parser_Internal.
(otl_parser_error): Fix typo.
(otl_parser_check_property): Remove third argument.
* src/otlayout/otlparse.c (otl_string_ensure):
s/OTL_Parse_Err_Memory/OTL_Err_Parser_Memory/.
(OTL_STRING_ENSURE, otl_parser_error, otl_parser_get_index,
otl_parser_replace_1, otl_parser_replace_n): Fix typos.
(OTL_PARSER_UNCOVERED): Removed.
(otl_parser_check_property): Remove third argument.
* src/otlayout/otljstf.c (otl_jstf_priority_validate): Add missing
variable declaration.
* src/otlayout/otlutils.h (OTL_MEM_REALLOC): Fix typo.
2004-08-12 14:22:28 +02:00
|
|
|
CFF_FIELD_CALLBACK( 0x119, blend_axis_types )
|
2000-12-08 03:42:29 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
CFF_FIELD_CALLBACK( 0x11E, cid_ros )
|
|
|
|
CFF_FIELD_NUM ( 0x11F, cid_font_version )
|
|
|
|
CFF_FIELD_NUM ( 0x120, cid_font_revision )
|
|
|
|
CFF_FIELD_NUM ( 0x121, cid_font_type )
|
|
|
|
CFF_FIELD_NUM ( 0x122, cid_count )
|
|
|
|
CFF_FIELD_NUM ( 0x123, cid_uid_base )
|
|
|
|
CFF_FIELD_NUM ( 0x124, cid_fd_array_offset )
|
|
|
|
CFF_FIELD_NUM ( 0x125, cid_fd_select_offset )
|
|
|
|
CFF_FIELD_STRING ( 0x126, cid_font_name )
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
CFF_FIELD_NUM ( 0x127, chameleon )
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#undef FT_STRUCTURE
|
2002-02-28 19:59:37 +01:00
|
|
|
#define FT_STRUCTURE CFF_PrivateRec
|
2000-12-08 03:42:29 +01:00
|
|
|
#undef CFFCODE
|
2000-12-08 17:17:16 +01:00
|
|
|
#define CFFCODE CFFCODE_PRIVATE
|
2000-12-08 03:42:29 +01:00
|
|
|
|
2003-06-06 07:07:53 +02:00
|
|
|
CFF_FIELD_DELTA ( 6, blue_values, 14 )
|
|
|
|
CFF_FIELD_DELTA ( 7, other_blues, 10 )
|
|
|
|
CFF_FIELD_DELTA ( 8, family_blues, 14 )
|
|
|
|
CFF_FIELD_DELTA ( 9, family_other_blues, 10 )
|
|
|
|
CFF_FIELD_FIXED_1000( 0x109, blue_scale )
|
|
|
|
CFF_FIELD_NUM ( 0x10A, blue_shift )
|
|
|
|
CFF_FIELD_NUM ( 0x10B, blue_fuzz )
|
|
|
|
CFF_FIELD_NUM ( 10, standard_width )
|
|
|
|
CFF_FIELD_NUM ( 11, standard_height )
|
|
|
|
CFF_FIELD_DELTA ( 0x10C, snap_widths, 13 )
|
|
|
|
CFF_FIELD_DELTA ( 0x10D, snap_heights, 13 )
|
|
|
|
CFF_FIELD_BOOL ( 0x10E, force_bold )
|
|
|
|
CFF_FIELD_FIXED ( 0x10F, force_bold_threshold )
|
|
|
|
CFF_FIELD_NUM ( 0x110, lenIV )
|
|
|
|
CFF_FIELD_NUM ( 0x111, language_group )
|
|
|
|
CFF_FIELD_FIXED ( 0x112, expansion_factor )
|
|
|
|
CFF_FIELD_NUM ( 0x113, initial_random_seed )
|
|
|
|
CFF_FIELD_NUM ( 19, local_subrs_offset )
|
|
|
|
CFF_FIELD_NUM ( 20, default_width )
|
|
|
|
CFF_FIELD_NUM ( 21, nominal_width )
|
2000-12-08 03:42:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|