Commit Graph

932 Commits

Author SHA1 Message Date
Tom Kacvinsky 0f9eab88c3 Added entries for changes to CFF and Type 1 drivers, related to units
per EM.  That is, calculate the units per EM based on the FontMatrix.
2001-02-07 01:24:11 +00:00
Tom Kacvinsky 6ad5735a27 In function T1_Init_Face, added code to get the units_per_EM from the
value assigned in parse_font_matrix, if available.  Default to 1000 if
not available.
2001-02-07 01:14:53 +00:00
Tom Kacvinsky 91649c7a31 In struct CFF_Font_Dict_, added a units_per_em member to facilitate
passing of units_per_em form function cff_parse_font_matrix.
2001-02-07 01:13:21 +00:00
Tom Kacvinsky 91f450c295 In function cff_parse_font_matrix, added logic to get the units_per_EM
from the FontMatrix.

Added a new function (cff_parse_fixed_thousand) that gets a real
number fromt he CFF font, but multiplies by 1000 (this is to avoid
rounding errors when placing this real number into a 16.16 fixed
number).

In function cff_parse_real, added code so that the integer part is
moved into the high sixtenn bits of the 16.16 fixed number.
2001-02-07 01:11:54 +00:00
Tom Kacvinsky 9df36e4718 In function CFF_Init_Face, added logic to get the units per EM from
the CFF dictionary, if available.
2001-02-07 01:08:34 +00:00
Werner Lemberg a15e07e31c * src/psaux/psobjs.c (shift_elements): Remove if clause (which is
obsolete now).

(reallocate_t1_table, PS_Table_Done): Replace REALLOC() with ALLOC()
+ MEM_Copy() to avoid a memory bug.
2001-02-03 04:34:53 +00:00
Werner Lemberg 3b5915dee7 formatting, ChangeLog entry 2001-02-03 03:00:06 +00:00
David Turner 3fe7ba83a1 improved docmaker slightly (better indexing, support for "<order>" marker
in section blocks, see "fttypes.h")
2001-02-02 05:24:11 +00:00
Antoine Leca 51bbfa5a70 Update of ttnameid.h with the most recent informations from Microsoft's SDK 2001-01-31 03:00:22 +00:00
Tom Kacvinsky 4caaf902d6 Added entries for changes to Type 1 driver (related to FontInfo
dictionaries and units per em).
2001-01-24 22:44:22 +00:00
Tom Kacvinsky d60dbcd2a8 In function parse_font_matrix, added heuristic to get units_per_EM
from the font matrix.

In parse_dict, deleted test to see if the FontInfo keyword has been
seen.  Deletion of this test allows fonts without FontInfo
dictionaries to be parsed by the Type 1 driver.

In T1_Open_Face, deleted empty subroutines array test to make sure
fonts with no subroutines still are parsed.
2001-01-24 22:41:20 +00:00
Werner Lemberg aba6d509c4 another small update of the Unicode range comments 2001-01-22 15:26:02 +00:00
Werner Lemberg 74c0edf44c grammatical fixes 2001-01-19 03:33:30 +00:00
Werner Lemberg 57175ec7b1 * src/pcfread.c (pcf_get_properties, pcf_get_metrics,
pcf_get_bitmaps): Fix compiler errors.

* src/pcf/pcfread.c: Removed some compilation warnings related
2001-01-18 04:00:12 +00:00
Werner Lemberg 69b7937e6e formatting 2001-01-15 23:11:55 +00:00
David Turner 53dc9ca9c3 some minor changes to allow compilation in all modes, without warnings 2001-01-12 21:49:08 +00:00
Werner Lemberg b632ac6e5a * builds/unix/freetype-config.in: Fix problems with separate
--prefix and --exec-prefix.


more robust handling of pathname wildcard matching.
2001-01-12 05:32:04 +00:00
David Turner eff79e3126 added cross-reference generation 2001-01-12 00:33:30 +00:00
Werner Lemberg 6e07332f94 * docs/docmaker.py: Minor improvements to reduce unwanted spaces
and empty lines in output.
* docs/docmaker.py: Improved script to generate table of contents
and index pages.  It also supports wildcards on non Unix systems.

* include/freetype/*.h, include/freetype/cache/*.h: Updated comments
to include section definitions/delimitations for the API Reference
generator.

* include/freetype/freetype.h: Moved declaration of
`FT_Generic_Finalizer' and the `FT_Generic' structure to...
* include/freetype/fttypes.h: here.
2001-01-11 09:27:49 +00:00
David Turner dec12f44fa updated documentation in public header files 2001-01-10 11:15:48 +00:00
David Turner 691e2426f4 improved the docmaker script 2001-01-10 06:53:49 +00:00
Werner Lemberg e8c8e30163 * include/freetype/ttnameid.h: Updated Unicode code range comments. 2001-01-05 05:15:49 +00:00
Werner Lemberg 70a6b864d4 formatting 2001-01-03 07:14:12 +00:00
Tom Kacvinsky e523a254e5 Added entries for changes to CFF driver function, variable, and source
file names.
2001-01-03 07:12:49 +00:00
Werner Lemberg ddc3115f14 * builds/vms: Support files for VMS architecture added.
* descrip.mms, src/*/descrip.mms: VMS makefiles added.
* README.VMS: New file.


* LICENSE.TXT: Added info about PCF driver license.
2001-01-03 06:47:10 +00:00
Werner Lemberg 941538f54e import of vms stuff 2001-01-03 06:38:54 +00:00
Werner Lemberg 421889b300 Initial revision 2001-01-03 06:38:54 +00:00
Tom Kacvinsky 2ef3977766 Changed to use cfftypes.h instead of t2types.h. Also, we now use
cfferrs.h instead of t2errors.h.
2001-01-03 00:29:35 +00:00
Tom Kacvinsky 094db936a2 Merged in changes from t2types.h, and made this the canonical `types'
header for the CFF driver.
2001-01-03 00:27:46 +00:00
Tom Kacvinsky c3d7df1e78 This file was merged with cfftypes.h and is no longer necessary. 2001-01-03 00:26:56 +00:00
Tom Kacvinsky 879226a92c This file was previously known as t2errors.h. 2001-01-03 00:25:36 +00:00
Tom Kacvinsky 8120ad9be8 Renamed to cfferrs.h. 2001-01-03 00:24:58 +00:00
Tom Kacvinsky c1430c7069 Changed to use cffgload.{c,h} instead of t2gload.{c,h}. Also, all
occurences of t2_ (T2_) were replaced with cff_ (CFF_, resp.).
2001-01-03 00:21:59 +00:00
Tom Kacvinsky d569012ea0 This file was previously known as t2gload.h. 2001-01-03 00:17:58 +00:00
Tom Kacvinsky 25a2c18a95 Renamed to cffgload.h. 2001-01-03 00:17:15 +00:00
Tom Kacvinsky 30e827985d Changed to reflect the changes made in the source files:
we now use cffgload.{c,h} instead of t2gload.{c,h}.
2001-01-03 00:16:24 +00:00
Tom Kacvinsky 7a8c67abfb This file was previously known as t2gload.c. 2001-01-03 00:15:00 +00:00
Tom Kacvinsky 6d01e3972b Renamed t2gload.c to cffgload.c. 2001-01-03 00:14:11 +00:00
Werner Lemberg 8dddc24dea * src/pcf/*: New driver module for PCF font format (used in
X Windows).
* include/freetype/internal/ftdebug.h (FT_Trace): Added values for
PCF driver.
* include/freetype/internal/pcftypes.h: New file.
* include/freetype/config/ftmodule.h: Added PCF driver module.


* src/winfonts/winfnt.c (FNT_Get_Char_Index): Fix parameter type.


* builds/modules.mk (clean_module_list): Fixed deletion of module
file in case `make make_module_list' is called before `make setup'.
2001-01-01 17:25:21 +00:00
Werner Lemberg 8c9a006d6c import of PCF driver 2001-01-01 17:24:31 +00:00
Werner Lemberg 0f52012e40 Initial revision 2001-01-01 17:24:31 +00:00
Werner Lemberg 9682808530 * src/cff/cffload.c (CFF_Load_Charset): Improved error messages.
(CFF_Load_Charset, CFF_Load_Encoding): Remove unnecessary variable
definition.

* src/cff/t2gload.c (t2_lookup_glyph_by_stdcharcode,
t2_operator_seac): Added these functions for use in implementing the
seac emulation provided by the Type 2 endchar operator.
(T2_Parse_CharStrings): Added seac emulation for the endchar
operator.
CFF_Done_Encoding, CFF_Done_Charset): Extended to load and parse the
charset/encoding tables, and free the memory used by them when the
CFF driver is finished with them.  Added tables
2000-12-30 22:14:58 +00:00
Tom Kacvinsky 7b7384927e Added entries for changes to CFF driver sources and headers. We now
have a working charset and encoding parser, along with a working seac
emulation (the 5 argument version of endchar).
2000-12-30 01:18:22 +00:00
Tom Kacvinsky 58552580ad Changed the structures CFF_Encoding and CFF_Charset. 2000-12-30 01:13:50 +00:00
Tom Kacvinsky 05a2eb4cf3 Chnaged the structures CFF_Charset and CFF_Encoding. 2000-12-30 01:13:07 +00:00
Tom Kacvinsky d9d7be77df Added functions t2_lookup_glyph_by_stdcharcode and t2_operator_seac
for use in implementing the seac emulation provided by the Type 2
endchar operator.

Extended T2_Parse_CharStrings to add seac emulation for the endchar
operator.
2000-12-30 00:39:40 +00:00
Tom Kacvinsky 86c50ab52a Added tables
cff_isoadobe_charset
    cff_expert_charset
    cff_expertsubset_charset
    cff_standard_encoding
    cff_expert_encoding

Extended functions CFF_Load_Encoding, CFF_Load_Charset, CFF_Done_Encoding,
and CFF_Done_Charset to load and parse the charset/encoding tables, and
free the memory used by them when FreeType is finished with them.
2000-12-30 00:37:14 +00:00
Tom Kacvinsky bac5e658cc Added entries pertaining to the changes needed in the CFF/Type 2
driver for font transforms to work.
2000-12-24 10:05:04 +00:00
Tom Kacvinsky 23d1fe0878 In function T2_Load_Glyph, added code so that the font transform is
applied.
2000-12-24 10:01:54 +00:00
Tom Kacvinsky c6dec5c06d Added code to cff_parse_font_matrix so that the font matrix numbers
are scaled by 1/(matrix->yy).  Also, the offset vector now contains
integer values instead of 16.16 fixed numbers.
2000-12-24 09:57:28 +00:00