summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* A first try to integrate the Infinality patches for the autohinter.autohinter-propertiesWerner Lemberg2012-02-087-7/+324
| | | | | It provides a framework for properties and adds a single property, `adjust glyph heights'.
* [autofit] Harmonize function arguments.Werner Lemberg2012-02-073-4/+11
| | | | | * src/autofit/afloader.c, src/autofit/afloader.h: Use `FT_Int32' for `load_flags'.
* * src/cff/cffobjs.c (cff_face_init): Remove unnecessary casts.Werner Lemberg2012-02-072-7/+11
|
* Formatting, whitespace.Werner Lemberg2012-02-0610-127/+179
|
* Formatting.Werner Lemberg2012-02-061-5/+5
|
* Fix copyright year.Werner Lemberg2012-02-061-1/+1
|
* Whitespace.Werner Lemberg2012-02-061-309/+309
|
* Formatting.Werner Lemberg2012-02-061-148/+216
|
* Cosmetics.Werner Lemberg2012-02-041-16/+16
|
* [configure] Fix minor grammar nits.Werner Lemberg2012-01-301-3/+3
|
* Minor documentation improvements regarding threads and faces.Werner Lemberg2012-01-271-1/+8
|
* [gxvalid] Fix Savannah bug #35286.suzuki toshiya2012-01-172-1/+12
| | | | | | | | | Patch submitted by anonymous reporter. * src/gxvalid/gxvcommn.c (gxv_XStateTable_subtable_setup): gxv_set_length_by_ulong_offset() must be called with 3, not 4, the number of the subtables in the state tables; classTable, stateArray, entryTable.
* [raccess] Modify for PIC build.suzuki toshiya2012-01-177-53/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on the patch provided by Erik Dahlstrom <ed@opera.com>, http://lists.gnu.org/archive/html/freetype-devel/2012-01/msg00010.html Also `raccess_guess_table[]' and `raccess_rule_by_darwin_vfs()' are renamed with `ft_' suffixes. * src/base/ftbase.h: `raccess_rule_by_darwin_vfs()' is renamed to `ft_raccess_rule_by_darwin_vfs()'. * src/base/ftobjs.c: Ditto. * src/base/ftrfork.c: Declarations of FT_RFork_Rule, raccess_guess_rec, are moved to... * include/freetype/internal/ftrfork.h: Here. * include/freetype/internal/ftrfork.h: FT_RFORK_RULE_ARRAY_{BEGIN,ENTRY,END} macros are defined to replace raccess_guess_table[] in both of PIC and non-PIC modes. * src/base/ftrfork.c: raccess_guess_table[] array is rewritten by FT_RFORK_RULE_ARRAY_{BEGIN,ENTRY,END}. * src/base/basepic.h (BasePIC): Add `ft_raccess_guess_table' storage. (FT_RACCESS_GUESS_TABLE_GET): New macro to retrieve the function pointer from `ft_raccess_guess_table' storage in `BasePIC' structure. * src/base/ftrfork.c (FT_Raccess_Guess): Rewritten with FT_RACCESS_GUESS_TABLE_GET. (raccess_get_rule_type_from_rule_index): Add `library' as the first argument to the function, to retrieve the storage of `ft_raccess_guess_table' from it. Also `raccess_guess_table' is replaced by FT_RACCESS_GUESS_TABLE_GET. (ft_raccess_rule_by_darwin_vfs): Ditto.
* Remove trailing spaces.suzuki toshiya2012-01-1780-173/+177
|
* Formatting PIC related sources.suzuki toshiya2012-01-1611-157/+321
| | | | | | | | | | | | | * src/autofit/afpic.c: Harmonize to FT2 coding conventions. * src/base/basepic.c: Ditto. * src/base/ftpic.c: Ditto. * src/cff/cffpic.c: Ditto. * src/pshinter/pshpic.c: Ditto. * src/psnames/pspic.c: Ditto. * src/raster/rastpic.c: Ditto. * src/sfnt/sfntpic.c: Ditto. * src/smooth/ftspic.c: Ditto. * src/truetype/ttpic.c: Ditto.
* [autofit] Fix the inclusion of "aflatin2.h" in PIC file.suzuki toshiya2012-01-162-0/+11
| | | | | | | * src/autofit/afpic.c: Include "aflatin2.h" when FT_OPTION_AUTOFIT2 is defined, as afglobal.c does so. Unconditionally inclusion causes declared but unimplemented warning by GCC 4.6.
* [cff] Remove redundant declarations of cff_cmap_XXX_class_rec.suzuki toshiya2012-01-162-4/+12
| | | | | | | | | * src/cff/cffpic.c: The declarations of FT_Init_Class_cff_cmap_encoding_class_rec() and FT_Init_Class_cff_cmap_unicode_class_rec() are removed. They can be obtained by the inclusion of cffcmap.h. cffcmap.h invokes FT_DECLARE_CMAP_CLASS() and it declares FT_Init_Class_cff_cmap_encoding_class_rec() etc in PIC mode.
* Fix redundant declaration warning in PIC mode.suzuki toshiya2012-01-1512-11/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally FT_DEFINE_{DRIVER,MODULE,RENDERER}() macros were designed to declare xxx_pic_{free,init} by themselves. Because these macros are used at the end of the module interface (e.g. ttdriver.c) and the wrapper source to build a module as a single object (e.g. truetype.c) includes the PIC file (e.g. ttpic.c) before the module interface, these macros are expanded AFTER xxx_pic_{free,init} body when the modules are built as single object. The declaration after the implementation causes the redundant declaration warnings, so the declarations are moved to module PIC headers (e.g. ttpic.h). Separating to other header files are needed for multi build. * include/freetype/internal/ftdriver.h (FT_DEFINE_DRIVER): Remove class_##_pic_free and class_##_pic_init declarations. * include/freetype/internal/ftobjs.h (FT_DEFINE_RENDERER, FT_DEFINE_MODULE): Ditto. * src/base/basepic.h: Insert a comment and fix coding style. * src/autofit/afpic.h: Declare autofit_module_class_pic_{free, init}. * src/cff/cffpic.h: Declare cff_driver_class_pic_{free,init}. * src/pshinter/pshpic.h: Declare pshinter_module_class_pic_{free, init}. * src/psnames/pspic.h: Declare psnames_module_class_pic_{free, init}. * src/raster/rastpic.h: Declare ft_raster{1,5}_renderer_class_pic_{free,init} * src/sfnt/sfntpic.h: Declare sfnt_module_class_pic_{free,init}. * src/smooth/ftspic.h: Declare ft_smooth_{,lcd_,lcdv_}renderer_class_pic_{free,init}. * src/truetype/ttpic.h: Declare tt_driver_class_pic_{free,init}.
* Make pspic.c to include module error header to fix multi build.suzuki toshiya2012-01-152-1/+8
| | | | * src/psnames/pspic.c: Include `psnamerr.h'.
* [base] Fix a dereference of uninitialized variable in PIC mode.suzuki toshiya2012-01-152-12/+21
| | | | | | | * src/base/ftglyph.c (FT_Glyph_To_Bitmap): `glyph' must be set before derefering to obtain `library'. The initialization of `clazz', `glyph', `library' and NULL pointer check are reordered to minimize PIC conditonals.
* [base] Insert explict cast for GCC 4.6 in PIC mode.suzuki toshiya2012-01-152-2/+23
| | | | | | | | | | * src/base/ftinit.c (FT_Add_Default_Modules): Under PIC configuration, FT_DEFAULT_MODULES_GET returns FT_Module_Class** pointer, GCC 4.6 warns that const FT_Module_Class* const* variable is warned as inappropriate to store it. To calm it, explicit cast is inserted. Also `library' is checked to prevent the NULL pointer dereference in FT_DEFAULT_MODULES_GET.
* Fix PIC build broken by d9145241fe378104ba4c12a42534549faacc92e6.suzuki toshiya2012-01-145-4/+75
| | | | | | | | | | | | | | Under PIC configuration, FT_{CFF,PSCMAPS,SFNT,TT}_SERVICES_GET take no arguments but derefer the variable named `library' internally. * src/cff/cffdrivr.c (cff_get_interface): Declare `library' and set it if non-NULL driver is passed. * src/truetype/ttdriver.c (tt_get_interface): Ditto. * src/sfnt/sfdriver.c (sfnt_get_interface): Declare `library' under PIC configuration, and set it if non-NULL module is given. * src/psnames/psmodule.c (psnames_get_interface): Ditto.
* Make PIC files to include module error headers, to use thesuzuki toshiya2012-01-148-0/+20
| | | | | | | | | | | | error codes with per-module prefix. * src/autofit/afpic.c: Include `aferrors.h'. * src/cff/cffpic.c: Include `cfferrs.h'. * src/pshinter/pshpic.c: Include `pshnterr.h'. * src/raster/rastpic.c: Include `rasterrs.h'. * src/sfnt/sfntpic.c: Include `sferrors.h'. * src/smooth/ftspic.c: Include `ftsmerrs.h'. * src/truetype/ttpic.c: Include `tterrors.h'.
* [truetype] Fix IP instruction if x_ppem != y_ppem.Tobias Ringström2012-01-042-3/+34
| | | | | * src/truetype/ttinterp.c (Ins_IP): Scale `orus' coordinates properly.
* Fix tracing message for `loca' table.Werner Lemberg2012-01-022-4/+11
| | | | | * src/truetype/ttpload.c (tt_face_get_location): Don't emit a warning message if the last `loca' entry references an empty glyph.
* Whitespace.Werner Lemberg2012-01-021-6/+6
|
* Add some variable initializations.Werner Lemberg2011-12-103-3/+13
| | | | | | | | Reported by Richard COOK <rscook@unicode.org>. * src/type1/t1driver.c (t1_ps_get_font_value): Initialize `val'. * src/smooth/ftgrays.c (gray_render_conic): Initialize `levels' earlier.
* Fix serious scaling bug in `FT_Get_Advances'.Werner Lemberg2011-12-082-9/+13
| | | | | * src/base/ftadvanc.c (FT_Get_Advances): Advance values returned by `FT_Load_Glyph' must be simply multiplied by 1024.
* * src/bdf/bdflib.c (_bdf_parse_start): Drop redundant error tracing.Werner Lemberg2011-12-082-2/+6
|
* Whitespace.Werner Lemberg2011-12-081-0/+1
|
* Whitespace.Werner Lemberg2011-12-021-13/+13
|
* [mac] Unify DARWIN_NO_CARBON with FT_MACINTOSH.suzuki toshiya2011-12-0215-23/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally FT_MACINTOSH was a pure auto macro and DARWIN_NO_CARBON was a configurable macro to disable Carbon-dependent code. Because now configure script sets DARWIN_NO_CARBON by default and disables Darwin & Carbon-dependent codes, these macros can be unified. FT_MACINTOSH (undefined by default) is kept and DARWIN_NO_CARBON (defined by default) is removed, because DARWIN_NO_CARBON violates FT_XXX naming convention of public macros, and a macro configured by default is not portable for the building without configure (e.g. make devel). * builds/unix/configure.raw: Define FT_MACINTOSH if Carbon-based old Mac font support is requested and Carbon is available. * builds/unix/ftconfig.in: Undefine FT_MACINTOSH when the support for Mac OS X without Carbon (e.g. Mac OS X 10.4 for ppc64) is requested. * include/freetype/config/ftconfig.in: Ditto. * builds/vms/ftconfig.h: Ditto. * src/base/ftbase.h: Remove DARWIN_NO_CARBON. * src/base/ftbase.c: Ditto. * src/base/ftobjs.c: Ditto. * src/base/ftrfork.c: Ditto. * src/base/ftmac.c: Compile the body if FT_MACINTOSH is defined (same with TT_USE_BYTECODE_INTERPRETER in ttinterp.c). * builds/mac/ftmac.c: Ditto. * builds/mac/FreeType.m68k_cfm.make.txt: Define FT_MACINTOSH. * builds/mac/FreeType.m68k_far.make.txt: Ditto. * builds/mac/FreeType.ppc_classic.make.txt: Ditto. * builds/mac/FreeType.ppc_carbon.make.txt: Ditto.
* Fix Savannah bug #34728 (`make devel' on Mac OS X).suzuki toshiya2011-11-303-0/+10
| | | | | | * builds/toplevel.mk: Check `/dev/null' to identify the Unix- like systems without `init' nor `hurd' (e.g. Mac OS X >= 10.4). * builds/unix/detect.mk: Ditto.
* [apinames] Fix the overflow of signed integer hash.suzuki toshiya2011-11-302-2/+13
| | | | | | | | * src/tools/apinames.c (names_add): Change the type of `h' from int to unsigned int, to prevent undefined behaviour in the overflow of signed integers (overflow of unsigned int is defined to be wrap around). Found by clang test suggested by Sean McBride.
* [winfonts] Remove casts.Werner Lemberg2011-11-302-25/+38
| | | | | | * src/winfonts/winfnt.c (winfnt_driver_class): Remove all casts and update affected functions. (FNT_Size_Select): Fix number of arguments.
* [type42] Remove casts.Werner Lemberg2011-11-304-53/+74
| | | | | | | | * src/type42/t42driver.c (t42_driver_class): Remove all casts and update affected functions. * src/type42/t42objs.c, src/type42/t42objs.h: Updated for t42driver changes.
* Cosmetics.Werner Lemberg2011-11-303-8/+8
|
* [type1] Remove casts.Werner Lemberg2011-11-306-95/+111
| | | | | | | | | | * src/type1/t1driver.c (t1_driver_class): Remove all casts and update affected functions. * src/type1/t1gload.c, src/type1/t1gload.h, src/type1/t1objs.c: Updated for t1driver changes. src/type1/t1objs.h (T1_Driver): Remove unused typedef. Updated for t1driver changes.
* Whitespace.Werner Lemberg2011-11-3026-79/+80
|
* Minor internal documentation fix.Werner Lemberg2011-11-301-5/+4
|
* Set the executable bit of autogen.sh.Werner Lemberg2011-11-291-0/+0
| | | | Savannah patch #7681.
* [bdf] Fix Savannah bug #34896.Werner Lemberg2011-11-273-7/+27
| | | | | | | | | | | | | | | ENCODING now covers the whole Unicode range. Note, however, that this change is quite expensive since it increases the size of three arrays by almost 400kByte in total. The right fix is to replace the logic with something smarter. Additionally, there exist very old BDFs for three-byte CCCII encoding which exceeds the range of Unicode (another reason to have a smarter logic). * src/bdf/bdf.h (bdf_font_t): Increase size of `nmod' and `umod' arrays. * src/bdf/bdflib.c (bdf_parse_t): Increase size of `have' array.
* [bdf] Improve tracing.Werner Lemberg2011-11-272-0/+15
| | | | | * src/bdf/bdflib.c (DBGMSG1, DBGMSG2): New macros. (_bdf_parse_glyphs): Use them.
* Improve tracing.Werner Lemberg2011-11-2615-29/+68
| | | | | | | | | | | | | | | | * src/bdf/bdfdrivr.c (BDF_Face_Done), src/pcf/pcfdrivr.c (PCF_Face_Done): Remove tracing message. * src/bdf/bdfdrivr.c (BDF_Face_Init), src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c (cid_face_init), src/pfr/pfrobjs.c (pfr_face_init), src/sfnt/sfobjs.c (sfnt_init_face), src/truetype/ttobjs.c (tt_face_init), src/type1/t1objs.c (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init), src/winfonts/winfnt.c (FNT_Face_Init): Add `greeting' message. * src/sfnt/sfobjs.c (sfnt_open_font), src/type42/t42objs.c (T42_Open_Face): Improve tracing.
* [cid] Fix error code.Werner Lemberg2011-11-262-1/+7
| | | | * src/cid/cidparse.c (cid_parser_new): Do it.
* [cff] Fix error code.Werner Lemberg2011-11-262-1/+7
| | | | * src/cff/cffload.c (cff_font_load): Do it.
* Addition to last commit.Werner Lemberg2011-11-262-6/+6
|
* Add new error code FT_Err_Missing_Module.Werner Lemberg2011-11-2610-21/+77
| | | | | | | | | | | | | | | | | | Previously, FreeType misleadingly returned FT_Err_Unknown_File_Format if a module was missing (or a test was missing completely). * include/freetype/fterrdef.h (FT_Err_Missing_Module): Define. * src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c (cid_face_init), src/sfnt/sfobjs.c (sfnt_init_face), src/truetype/ttobjs.c (tt_face_init), src/type1/t1objs.c (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init, T42_Driver_Init): Updated. * src/type1/t1afm.c (T1_Read_Metrics), src/type/t1objs.c (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init): Remove now redundant test for `psaux'.
* [bdf] Add more error messages.Werner Lemberg2011-11-252-56/+86
| | | | | | | | | * src/bdf/bdflib.c (_bdf_set_default_spacing, _bdf_add_property): Add line number argument. Update all callers. (ERRMSG5, ERRMSG6, ERRMSG7, ERRMSG8, ERRMSG9): New macros. (_bdf_readstream, _bdf_set_default_spacing, _bdf_add_property, _bdf_parse_glyphs, _bdf_parse_start): Add error messages.
* * include/freetype/fterrors.h: Remove dead code.Werner Lemberg2011-11-242-1/+4
|