* src/pk/pkdrivr.c(pk_cmap_char_{index, next}): Use `linear search'
instead of `binary search' in the encoding table as it will always
be unsorted.
* src/pk/pklib.c: Resolve issues occurred in the previous commit
which caused errors in glyph loading on `ft2-demos'.
* src/pk/pkdrivr.c(PK_Glyph_Load):
- Remove unnecessary test for code_{min, max} values.
- Use pointer to get metric values.
* src/pk/pklib.c(pk_load_font):
- Improve tracing.
- Remove unnecessary variables and parameters.
* src/pk/pkdrivr.c(PK_Face_Init):
- Change `pk_cmap_class' functions to use new encoding
scheme.
- Set charmap to `0: synthetic, platform 0, encoding 0
language 0' values.
* src/gf/gfdrivr.c(GF_Face_Init):
- Change `gf_cmap_class' functions to use new encoding
scheme.
- Set charmap to `0: synthetic, platform 0, encoding 0
language 0' values.
* src/gf/gflib.c(gf_set_encodings, gf_load_font): Modify
to set encoding so as to load glyphs in the order they appear
in the font file.
* src/tfm/tfmobjs.c(tfm_parse_metrics):
- Modify the metric extraction functions.
- Add checking for `tfm' file so that an error will be
returned if the font file is found *malformed*.
* include/freetype/internal/tfm.h(TFM_FontInfoRec): Change data types
to accomodate changes.
* include/freetype/internal/tfm.h(TFM_ServiceRec): Create `TFM_Parse_FuncsRec'
to hold the `tfm' module functions.
* src/gf/gfdrivr.c(GF_Load_Glyph): Modify glyph metric values
to resolve the *glyph jumping* error and make the glyphs to
properly sit on baseline.
* src/pk/pkdrivr.c(PK_Glyph_Load): Ditto.
* src/pk/pklib.c(pk_load_font): Change `READ_UINT4' function
to `READ_INT4' to *correctly* extract information in font
file's header.
* Now pk driver displays glyphs in ftview.
* src/pk/pkdrivr.c: Define `attach_file' function, `TFM_Read_Metrics'
in `pk_driver_class' to extract font metric information from `tfm'
file.
* src/pk/pkdrivr.c(PK_Face_Init): Initialise `TFM_Service' by calling
`FT_Get_Module_Interface'.
* include/freetype/internal/tfm.h:
- Add TFM_FontInfoRec to accomodate TFM metric data.
- Define TFM_ParserRec to parse the metric data from
input `tfm' file.
- Define TFM_ServiceRec to provide functions to do it.
* src/gf/gfdrivr.c: Define `attach_file' function, `TFM_Read_Metrics'
in `gf_driver_class' to extract font metric information from `tfm'
file using a new `TFM' auxiliary module.