1. 17 Aug, 2003 1 commit
    • David Turner's avatar
      * Jamfile: adding the "refdoc" target to the Jamfile in order to · 1b1f7b92
      David Turner authored
              build the API Reference in "docs/reference" automatically
      
              * include/freetype/t1tables.h, src/cid/cidtoken.h, src/type1/t1tokens.h,
              src/type42/t42parse.c:
      
              re-setting the types of "italic_angle", "underline_position" and
              "underline_thickness" to their previous values (i.e. long, short and
              ushort), in order to avoid breaking binary compatibility
      
              * include/freetype/ttunpath.h: fixing documentation comment
      1b1f7b92
  2. 25 Jul, 2003 1 commit
    • Werner Lemberg's avatar
      · e7df0f90
      Werner Lemberg authored
      Make reference valid HTML 4.01 transitional.
      
      * src/tools/docmaker/tohtml.py (html_header_1): Add doctype
      and charset.
      (html_header_2): Fix style elements and add some more.
      Fix syntax.
      (block_header, block_footer, description_header, description_footer,
      marker_header, marker_footer, source_header, source_footer,
      chapter_header, chapter_footer): Don't use <center>...</center> but
      `align=center' table attribute.
      Use double quotes around table widths given in percent.
      (keyword_prefix, keyword_suffix): Don't change font colour directly
      but use a new <span> class.
      (section_synopsis_header, section_synopsis_footer): Don't change
      colour.
      (print_html_field): <tr> gets the `valign' attribute, not <table>.
      (print_html_field_list): Ditto.
      (index_exit): Don't use <center>...</center> but `align=center'
      table attribute.
      (toc_exit, section_enter): Ditto.
      (block_enter): Use <h4><a>, not <a><h4>.
      
      
      This change reimplements fix from 2003-05-30 without breaking
      binary compatibility.
      
      * include/freetype/t1tables.h (PS_FontInfoRec): `italic_angle',
      `is_fixed_pitch', `underline_position', `underline_thickness' are
      reverted to be normal values.
      
      * include/freetype/internal/psaux.h (T1_FieldType): Remove
      `T1_FIELD_TYPE_BOOL_P', `T1_FIELD_TYPE_INTEGER_P',
      `T1_FIELD_TYPE_FIXED_P', `T1_FIELD_TYPE_FIXED_1000_P'.
      (T1_FIELD_TYPE_BOOL_P, T1_FIELD_NUM_P, T1_FIELD_FIXED_P,
      T1_FIELD_FIXED_1000_P): Removed.
      (T1_FIELD_TYPE_BOOL): Renamed to...
      (T1_FIELD_BOOL): New macro.  Updated all callers.
      
      * src/type42/t42parse.c: `italic_angle', `is_fixed_pitch',
      `underline_position', `underline_thickness', `paint_type',
      `stroke_width' are reverted to be normal values.
      (T42_KEYWORD_COUNT): New macro.
      (t42_parse_dict): New array `keyword_flags' to mark that a value has
      already been assigned to a dictionary entry.
      * src/type42/t42objs.c (T42_Face_Init, T42_Face_Done): Updated.
      
      * src/cid/cidtoken.h: `italic_angle', `is_fixed_pitch',
      `underline_position', `underline_thickness' are reverted to be
      normal values.
      * src/cid/cidobjs.c (cid_face_done, cid_face_init): Updated.
      
      * src/psaux/psobjs.c (ps_parser_load_field): Updated.
      
      * src/type1/t1tokens.h: `italic_angle', `is_fixed_pitch',
      `underline_position', `underline_thickness', `paint_type',
      `stroke_width' are reverted to be normal values.
      * src/type1/t1objs.c (T1_Face_Done, T1_Face_Init): Updated.
      * src/type1/t1load.c (T1_FIELD_COUNT): New macro.
      (parse_dict): Add parameter for keyword flags.
      Record only first instance of a field.
      (T1_Open_Face): New array `keyword_flags'.
      e7df0f90
  3. 12 Jun, 2003 2 commits
    • Werner Lemberg's avatar
      · 8934eb01
      Werner Lemberg authored
      * include/freetype/internal/psaux.h (T1_FieldType): Add
      T1_FIELD_TYPE_KEY.
      (T1_FIELD_KEY): New macro.
      * src/psaux/psobjs.c (ps_parser_load_field): Handle
      T1_FIELD_TYPE_KEY.
      
      * src/cid/cidtoken.h: Use T1_FIELD_KEY for /CIDFontName.
      
      
      * src/cache/ftlru.c (FT_LruList_Remove_Selection): Decrease
      number of nodes.
      (FT_LruList_Lookup): Fix assertion for out-of-memory case.
      8934eb01
    • Werner Lemberg's avatar
      · e398340d
      Werner Lemberg authored
      * src/cid/cidobjs.c: Apply change 2003-05-31 from <Ron.Dev@gmx.de>.
      Compute style flags.
      Fix computation of root->height.
      * src/cid/cidtoken.h: Handle FontBBox.
      * src/cid/cidload.c (cid_load_keyword): Handle
      T1_FIELD_LOCATION_BBOX.
      (parse_font_bbox): Commented out.
      (cid_field_record): Comment out element for parsing FontBBox.
      
      * src/type42/t42parse.c (t42_parse_font_bbox): Commented out.
      (t42_keywords): Handle FontBBox with T1_FIELD_BBOX, not with
      T1_FIELD_CALLBACK.
      (t42_parse_font_bbox): Commented out.
      (t42_load_keyword): Handle T1_FIELD_LOCATION_BBOX.
      * src/type42/t42objs.c (T42_Face_Init): Apply change 2003-05-31
      from <Ron.Dev@gmx.de>.
      e398340d
  4. 06 Jun, 2003 1 commit
    • Werner Lemberg's avatar
      · 31d783b1
      Werner Lemberg authored
      * include/freetype/internal/psaux.h (T1_FieldType): Add
      T1_FIELD_TYPE_FIXED_1000 and T1_FIELD_TYPE_FIXED_1000_P.
      (T1_FIELD_FIXED_1000, T1_FIELD_FIXED_1000_P): New macros.
      * src/psaux/psobjs.c (ps_parser_load_field): Handle
      T1_FIELD_TYPE_FIXED_1000 and T1_FIELD_TYPE_FIXED_1000_P.
      
      * src/cff/cffparse.c (cff_kind_fixed_thousand): New enumeration.
      (CFF_FIELD_FIXED_1000): New macro.
      (cff_parser_run): Handle cff_kind_fixed_thousand.
      * src/cff/cfftoken.h: Use CFF_FIELD_FIXED_1000 for blue_scale.
      * src/cff/cffload (cff_subfont_load): Fix default values of
      expansion_factor and blue_scale.
      
      * src/cif/cidtoken.h, src/type1/t1tokens.h: Use T1_FIELD_FIXED_1000
      for blue_scale.
      
      * src/pshinter/pshglob.c (psh_globals_new): Fix default value of
      blue_scale.
      31d783b1
  5. 30 May, 2003 1 commit
    • Werner Lemberg's avatar
      · e7d4fea8
      Werner Lemberg authored
      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.
      e7d4fea8
  6. 30 Mar, 2002 1 commit
    • Werner Lemberg's avatar
      · f1c46e5e
      Werner Lemberg authored
      formatting, copyright
      f1c46e5e
  7. 14 Mar, 2002 1 commit
    • David Turner's avatar
      * include/freetype/internal/psaux.h, · 72a849f3
      David Turner authored
                src/cid/cidload.c, src/cidtoken.h,
                src/psaux/psobjs.c, src/psaux/psobjs.h, src/psaux/t1decode.c,
                stc/type1/t1load.c, src/type1/t1tokens.h: updated common Postscript
                type definitions
      72a849f3
  8. 28 Feb, 2002 2 commits
  9. 28 Jun, 2001 1 commit
    • Werner Lemberg's avatar
      · 08146ba1
      Werner Lemberg authored
      finishing function header formatting
      
      updating copyrights
      08146ba1
  10. 06 Jun, 2001 1 commit
    • Werner Lemberg's avatar
      Complete redesign of error codes. Please check ftmoderr.h for more · 442b0910
      Werner Lemberg authored
      details.
      
      * include/freetype/internal/cfferrs.h,
      include/freetype/internal/tterrors.h,
      include/freetype/internal/t1errors.h: Removed.  Replaced with files
      local to the module.  All extra error codes have been moved to
      `fterrors.h'.
      
      * src/sfnt/ttpost.h: Move error codes to `fterrors.h'.
      
      * src/autohint/aherrors.h, src/cache/ftcerror.h, src/cff/cfferrs.h,
      src/cid/ciderrs.h, src/pcf/pcferror.h, src/psaux/psauxerr.h,
      src/psnames/psnamerr.h, src/raster/rasterrs.h, src/sfnt/sferrors.h,
      src/smooth/ftsmerrs.h, src/truetype/tterrors.h,
      src/type1/t1errors.h, src/winfonts/fnterrs.h: New files defining the
      error names for the module it belongs to.
      
      * include/freetype/ftmoderr.h: New file, defining the module error
      offsets.  Its structure is similar to `fterrors.h'.
      
      * include/freetype/fterrors.h (FT_NOERRORDEF): New macro.
      (FT_ERRORDEF): Redefined to use module error offsets.
      All internal error codes are now public; unused error codes have
      been removed, some are new.
      
      * include/freetype/config/ftheader.h (FT_MODULE_ERRORS_H): New
      macro.
      * include/freetype/config/ftoption.h
      (FT_CONFIG_OPTION_USE_MODULE_ERRORS): New macro.
      
      All other source files have been updated to use the new error codes;
      some already existing (internal) error codes local to a module have
      been renamed to give them the same name as in the base module.
      
      All make files have been updated to include the local error files.
      
      
      * src/cid/cidtokens.h: Replaced with...
      * src/cid/cidtoken.h: This file for 8+3 consistency.
      
      * src/raster/ftraster.c: Use macros for header file names.
      442b0910
  11. 24 Aug, 2000 1 commit
    • Werner Lemberg's avatar
      · 1a6f111f
      Werner Lemberg authored
      Formatting, small fixes.
      
      Adding basic input parameter checking for exported functions.
      1a6f111f
  12. 23 Aug, 2000 1 commit
  13. 31 Jul, 2000 1 commit
    • Werner Lemberg's avatar
      · ff0cedbb
      Werner Lemberg authored
      Simplifying the FIELD_* and FRAME_* macros.  Before calling these macros,
      you should #define FT_STRUCTURE to the structure which will be filled.
      
      Replaced FT_FIELD_REF with FT_FIELD_SIZE, FT_FIELD_SIZE_DELTA, and
      FT_FIELD_OFFSET to make the code more readable; additionally, it should be
      more portable because we no longer cast a pointer to an FT_UShort (which
      e.g. fails with Sun's C++ compiler) but computes the difference between two
      pointers which is guaranteed to work.
      
      Fixing warnings (and C++ errors) while using Sun's latest cc and CC
      incarnations.  Most of them are related to variable shadowing.
      ff0cedbb
  14. 01 Jul, 2000 1 commit
    • Werner Lemberg's avatar
      · a8bbc267
      Werner Lemberg authored
      Formatting as usual...
      
      Adding trivial argument checking to some functions.
      
      Added dynamic driver interface to cidriver.
      
      Minor `version' fixes for macfont and psnames modules.
      
      Removed unnecessary files
      a8bbc267
  15. 27 Jun, 2000 1 commit
  16. 16 Jun, 2000 1 commit
    • Werner Lemberg's avatar
      · e3c11d7f
      Werner Lemberg authored
      A new round of formatting, adding/fixing documentation etc.
      e3c11d7f
  17. 01 Jun, 2000 1 commit