summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * modules.cfg: compile ftgxval.c by defaultVER-2-2-1VER-2-2-0-RC4VER-2-2-0Suzuki, Toshiya (鈴木俊哉)2006-08-152-1/+6
|
* * src/otvalid/otvmod.c, src/gxvalid/gxvmod.c: replace ft_validator_run by ↵Suzuki, Toshiya (鈴木俊哉)2006-08-153-7/+17
| | | | ft_setjmp
* * freetype2/include/freetype/internal/psaux.h: (enum T1_TokenType_):Jens Claudius2006-08-138-172/+269
| | | | | | | | | | | | | | | | | | | | | | | | | add T1_TOKEN_TYPE_KEY. (struct T1_FieldRec_) add `dict'. Add macros T1_FIELD_DICT_FONTDICT and T1_FIELD_DICT_PRIVATE. Change T1_NEW_XXX and T1_FIELD_XXX macros to take the dictionary where the PS keywords is expected as an additional argument. * freetype2/src/cid/cidload.c: (T1_FieldRec): Adjust invocations of T1_FIELD_XXX. * freetype2/src/cid/cidtoken.h: Adjust invocations of T1_FIELD_XXX. * freetype2/src/psaux/psobjs.c: Add macro FT_COMPONENT for tracing. (ps_parser_to_token): Report a PostScript key as T1_TOKEN_TYPE_KEY instead as T1_TOKEN_TYPE_ANY. (ps_parser_load_field): Make sure a token that should be a string or name is a string or name indeed. Avoid memory leak if a keyword has been already encountered and its value is overwritten. * freetype2/src/type1/t1load.c: (T1_FieldRec): Adjust invocations of T1_FIELD_XXX. (parse_dict): Ignore keywords that occur in the wrong dictionary (e.g., in Private instead of FontDict). * freetype2/src/type1/t1tokens.h: Adjust invocations of T1_FIELD_XXX.
* Fix ChangeLog.Werner Lemberg2006-07-281-2/+2
|
* Move creation of field `buildchar' of T1_DecoderRec out ofWerner Lemberg2006-07-198-44/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `t1_decoder_init' and let the caller of `t1_decoder_init' take care of it. Call the finisher for T1_Decoder in `cid_face_compute_max_advance' and `T1_Compute_Max_Advance'. * freetype2/include/freetype/internal/psaux.h (T1_DecoderRec): Remove field `face', add `len_buildchar'. * freetype2/include/freetype/internal/t1types.h (T1_FaceRec): Add field `buildchar'. * freetype2/src/cid/cidgload.c (cid_face_compute_max_advance): Call finisher for T1_Decoder. (cid_slot_load_glyph): Do not ignore failure when initializing the T1_Decoder. * freetype2/src/psaux/t1decode.c (t1_decoder_parse_charstrings): Updated. (t1_decoder_init): Remove initialization of fields `buildchar' and `len_buildchar'. (t1_decoder_done): Remove deallocation of field `buildchar'. * freetype/src/type1/t1gload.c (T1_Compute_Max_Advance): Initialize T1_Decoder's `buildchar' and `len_buildchar'; call finisher for T1_Decoder. (T1_Load_Glyph): Initialize T1_Decoder's `buildchar' and `len_buildchar'; make sure to call finisher for T1_Decoder even in case of error. * freetype2/src/type1/t1load.c (T1_Open_Face): Allocate new field `buildchar' of T1_FaceRec. * freetype2/src/type1/t1objs.c (T1_Face_Done): Free new field `buildchar' of T1_FaceRec.
* * freetype2/include/freetype/internal/psaux.h: New macrosWerner Lemberg2006-07-1410-102/+519
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IS_PS_NEWLINE, IS_PS_SPACE, IS_PS_SPECIAL, IS_PS_DELIM, IS_PS_DIGIT, IS_PS_XDIGIT, and IS_PS_BASE85 (from freetype2/src/psaux/psconv.h). (T1_FieldLocation): Add T1_FIELD_LOCATION_LOADER, T1_FIELD_LOCATION_FACE, and T1_FIELD_LOCATION_BLEND. (T1_DecoderRec): New fields `buildchar' and `face'. (IS_PS_TOKEN): New macro. * freetype2/include/freetype/internal/t1types.h (T1_FaceRec): New fields `ndv_idx', `cdv_idx', and `len_buildchar'. * freetype2/include/freetype/t1tables.h (PS_BlendRec): New fields `default_design_vector' and `num_default_design_vector'. * freetype2/src/psaux/psconv.h: Move macros IS_PS_NEWLINE, IS_PS_SPACE, IS_PS_SPECIAL, IS_PS_DELIM, IS_PS_DIGIT, IS_PS_XDIGIT, and IS_PS_BASE85 to freetype2/include/freetype/internal/psaux.h. * freetype2/src/psaux/psobjs.c (ps_parser_to_token_array): Allow `token' argument to be NULL if we want only to count the number of tokens. (ps_tocoordarray): Allow `coords' argument to be NULL if we just want to skip the array. (ps_tofixedarray): Allow `values' argument to be NULL if we just want to skip the array. * freetype2/src/psaux/t1decode.c (t1_decoder_parse_charstrings): Add support for (partially commented out) othersubrs 19-25, 27, and 28. (t1_decoder_init): Initialize new fields `face' and `buildchar'. (t1_decoder_done): Release new field `buildchar'. * freetype2/src/type1/t1load.c (parse_buildchar, parse_private): New functions. (t1_keywords): Register them. (t1_allocate_blend): Updated. (t1_load_keyword): Handle field types T1_FIELD_LOCATION_LOADER, T1_FIELD_LOCATION_FACE and T1_FIELD_LOCATION_BLEND. (parse_dict): Remove `keyword_flags' argument. Use new macro IS_PS_TOKEN. Changed function so that later PostScript definitions override earlier ones. (t1_init_loader): Initialize new field `keywords_encountered'. (T1_Open_Face): Initialize new fields `ndv_idx', `cdv_idx', and `len_buildchar'. Remove `keywords_flags'. * freetype2/src/type1/t1load.h (T1_LoaderRect): New field `keywords_encountered'. (T1_PRIVATE, T1_FONTDIR_AFTER_PRIVATE): New macros. * freetype2/src/type1/t1tokens.h [!T1_CONFIG_OPTION_NO_MM_SUPPORT]: New entries for parsing /NDV, /CDV, and /DesignVector.
* Add many checks to protect against malformed PCF files.Werner Lemberg2006-07-083-56/+190
| | | | | | | | | | | | | | | | | | | | | | | | * src/pcf/pcfdrivr.c (PCF_Face_Done): Protect against NULL pointers. (PCF_Face_Init): Add calls to PCF_Face_Done in case of errors. * src/pcf/pcfread.c (pcf_read_TOC): Protect against malformed table data and check that tables don't overlap (using a simple bubblesort). (PCF_METRIC_SIZE, PCF_COMPRESSED_METRIC_SIZE, PCF_PROPERTY_SIZE): New macros which give the size of data structures in the data stream. (pcf_get_properties): Use rough estimates to get array size limits. Assign `face->nprops' and `face->properties' earlier so that a call to PCF_Face_Done can do the clean-up in case of error. Protect against invalid string offsets. (pcf_get_metrics): Clean up code. Adjust tracing message levels. Use rough estimate to get array size limit. (pcf_get_bitmaps): Clean up code. Adjust tracing message levels. Use rough estimates to get offset limits. (pcf_get_encodings): Adjust tracing message level. (pcf_get_accel): Clean up code.
* more doc fixesWerner Lemberg2006-07-031-2/+3
|
* doc improvementWerner Lemberg2006-07-031-0/+2
|
* minor doc improvementWerner Lemberg2006-07-021-1/+2
|
* * src/bdf/bdfdrivr.c (BDF_Face_Init): Handle fonts correctly whichWerner Lemberg2006-06-272-0/+7
| | | | don't have a POINT_SIZE property. This fixes Savannah bug #16914.
* * src/psaux/t1decode.c (T1_Operator, t1_args_count): Add opcode 15.Werner Lemberg2006-06-262-49/+163
| | | | | | | | | | | (t1_decoder_parse_charstrings): Operator with opcode 15 pops its two arguments. Handle the case where the pops of an othersubr may be part of a subroutine. Handle unknown othersubrs gracefully: count their operands and let the following pop operators push the operands as the results onto the Type1 stack. Improve handling of setcurrentpoint opcode.
* Fix handling of self-delimiting tokens.Werner Lemberg2006-06-261-2/+12
|
* The Type 1 parser now skips over top-level procedures as requiredWerner Lemberg2006-06-263-103/+213
| | | | | | | | | | | | | | | | | | | | for a `Simplified Parser'. This makes the parser more robust as it doesn't poke around in PostScript code. Additionally, it makes the FontDirectory hackery in src/type1/t1load.c unnecessary. * src/psaux/psobjs.c (IS_OCTAL_DIGIT): New macro. (skip_literal_string): Add FT_Error as return value. Handle escapes better. (skip_string): Add FT_Error as return value. Don't set `parser->error' but return error code directly. (skip_procedure): New function. (ps_parser_skip_PS_token): Handle procedures. Update code. (ps_parser_to_token): Update code. (ps_parser_load_field_table): Handle bbox entries also. * src/type1/t1load.c (parse_dict): Remove FontDirectory hackery. Add commented-out code for synthetic fonts.
* Fix two hinting bugs as reported inWerner Lemberg2006-06-254-9/+39
| | | | | | | | | | | | | | | http://lists.nongnu.org/archive/html/freetype-devel/2006-06/msg00057.html. * include/freetype/internal/tttypes.h (TT_GlyphZoneRec): Add `first_point' member. * src/truetype/ttgload.c (tt_prepare_zone): Initialize `first_point'. (TT_Process_Composite_Glyph): Always untouch points. * src/truetype/ttinterp.c (Ins_SHC): Fix computation of `first_point' and `last_point' in case of composite glyphs. (Ins_IUP): Fix computation of `end_point'.
* formatting, copyright yearsWerner Lemberg2006-06-254-25/+25
|
* * src/base/ftmac.c: Add byteorder workaround for Intel MacSuzuki, Toshiya (鈴木俊哉)2006-06-222-12/+40
|
* typo; spotted by GeorgeWerner Lemberg2006-06-161-3/+3
|
* Fix ChangeLog.Werner Lemberg2006-06-161-12/+12
|
* src/base/ftgxval.c, src/base/ftotval.c: return FT_Err_Unimplemented_Feature ↵Suzuki, Toshiya (鈴木俊哉)2006-06-153-3/+21
| | | | when validation service is unavailable
* * src/bdf/bdflib.c (bdf_load_font): Fix memory leaks in case ofWerner Lemberg2006-06-082-2/+16
| | | | errors.
* formattingWerner Lemberg2006-06-081-5/+3
|
* Fix memory leak described in Savannah bug #16768David Turner2006-06-072-9/+17
| | | | | | * src/type1/t1afm.c (T1_Read_Metrics): fix memory leak which happened when the metrics file doesn't have kerning pairs.
* oops, stupid error fixedDavid Turner2006-06-061-1/+1
|
* formattingWerner Lemberg2006-06-063-12/+29
|
* * include/freetype/internal/services/svpscmap.h, src/cff/cffcmap.c,David Turner2006-06-065-15/+50
| | | | | | | | src/psaux/t1cmap.c, src/psnames/psmodule.c: Fix for the memory leak described in bug #16759. We change 'ps_unicodes_init' so that it also takes a 'free_glyph_name' callback to release the glyph names returned by 'get_glyph_name'
* formattingWerner Lemberg2006-06-042-19/+15
|
* * src/base/ftutil.c (ft_mem_qrealloc): fix the functionDavid Turner2006-06-042-2/+12
| | | | | | | to accept 'item_size == 0' as well, though this sounds weird, it can theorically happen. see bug #16669
* * src/pfr/pfrobjs.c (pfr_face_init): fix the computationDavid Turner2006-06-042-1/+11
| | | | | | | | | of 'face->num_glyphs' which missed the last glyph, due to the offset-by-1 computation, since the PFR format doesn't guarantee that glyph index 0 corresponds to the "missing glyph" should fix bug #16668
* * builds/unix/unix-cc.in (LINK_LIBRARY): Don't comment outWerner Lemberg2006-05-262-2/+7
| | | | `-no-undefined'. Reported by Christian Biesinger.
* * builds/win32/visualc/freetype.dsp: Release libraries no longerWerner Lemberg2006-05-202-9/+15
| | | | | have debug information, and debug libraries use `C7 compatible' debug info.
* Fix ChangeLog.Werner Lemberg2006-05-201-6/+6
|
* * fix 2 memory leaks in MacOS resource fork handler, Savannah bug #16631Suzuki, Toshiya (鈴木俊哉)2006-05-193-2/+13
|
* * remove Carbon dependency of Darwin, if configured with no optionSuzuki, Toshiya (鈴木俊哉)2006-05-192-0/+13
|
* fix the 2nd part of Savannah bug #16590Suzuki, Toshiya (鈴木俊哉)2006-05-192-0/+8
|
* * src/truetype/ttgload.c (TT_Load_Composite_Glyph)Werner Lemberg2006-05-1712-170/+282
| | | | | | | [FT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Make it compilable again. Formatting, documentation fixes.
* * include/freetype/internal/tttypes.h, src/autofit/afangles.c,David Turner2006-05-1713-393/+536
| | | | | | | | | | | | | | | | | src/autofit/afcjk.c, src/autofit/afhints.c, src/autofit/aflatin.c, src/autofit/aftypes.h, src/base/ftcalc.c, src/base/ftoutln.c, src/gzip/ftgzip.c, src/psaux/psconv.c, src/truetype/ttgload.c, src/type1/t1gload.c: this is a major patch used to drastically improve the performance of loading glyphs. This both speeds up loading the glypn vector themselves and the auto-fitter. note that we've started using inline assembler with GCC to implement FT_MulFix, given that this function is so damn important for the engine's performance. the resulting speed-up is about 25%.
* * src/ftccmap.c (FTC_CMapCache_Lookup): changed the thresholdDavid Turner2006-05-172-2/+13
| | | | | | used to detect rogue clients from 4 to 16. This is to prevent some segmentation faults with fonts like KozMinProVI-Regular.otf which comes from the Japanese Adobe Reader Asian Font pack.
* * src/cff/cffload.c (cff_font_done): Deallocate subfont array. ThisWerner Lemberg2006-05-173-8/+36
| | | | | | | fixes the first part of Savannah bug #16590. * docs/PROBLEMS: Updated icl issues.
* Version 2.2.1 released.Werner Lemberg2006-05-121-0/+9
|
* * src/tools/docmaker/tohtml.py (block_footer): Split into...Werner Lemberg2006-05-122-3/+21
| | | | | | (block_footer_start, block_footer_middle, block_footer_end): This to add navigation buttons. (HtmlFormatter::block_exit): Updated.
* Add final newline.Werner Lemberg2006-05-121-1/+0
|
* * src/tools/docmaker/tohtml.py (html_header_1): Use `utf-8' charset.Werner Lemberg2006-05-1210-25/+58
| | | | Convert some files to UTF-8.
* More minor fixes. Move `version' section to the end of freetype.h so thatWerner Lemberg2006-05-1211-142/+154
| | | | the library compiles actually.
* * src/tools/docmaker/sources.py (re_source_keywords): Add wordWerner Lemberg2006-05-1222-233/+297
| | | | | | | | | boundary markers. * src/tools/docmaker/content.py (re_field): Allow `.' in field names (but not at the beginning or end). * include/freetype/*: Many minor documentation improvements (adding links, spelling errors, etc.).
* * README: Minor updates.Werner Lemberg2006-05-1211-90/+118
| | | | | | | | | | | * include/freetype/*: s/scale/scaling value/ where appropriate. Many other minor documentation improvements. * src/tools/docmaker/sources.py (re_italic, re_bold): Handle trailing punctuation. * src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_word): Add warning message for undefined cross references. Update handling of re_italic and re_bold.
* Improve layout of `CHANGES' file.Werner Lemberg2006-05-111-23/+23
|
* (FT_Stream_Open): Check errno only if read system call returns -1.Yamato, Masatake (大和正武)2006-05-112-2/+8
| | | | Remove a redundant parenthesis.
* convert to Unix line endingsWerner Lemberg2006-05-102-53/+53
|
* convert to Unix line endings.Werner Lemberg2006-05-101-33/+32
|