summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Use __asm__ for declaring assembly instead of asm.Steve Langasek2009-03-152-1/+8
| | | | | * builds/unix/ftconfig.in (FT_MulFix_arm): Use __asm__ instead of asm on arm, fixing a build failure on armel with -pedantic.
* Fix valgrind warning.Werner Lemberg2009-03-142-5/+54
| | | | | * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_bit_aligned): Don't read past the end of the frame.
* * Version 2.3.9 released.VER-2-3-9Werner Lemberg2009-03-121-0/+8
| | | | | | | ========================= Tag sources with `VER-2-3-9'.
* * builds/unix/freetype2.in: Move @FT2_EXTRA_LIBS@ to `Libs.private'.Werner Lemberg2009-03-122-3/+7
|
* Fix some FreeType Coverity issues as reported for Ghostscript.Werner Lemberg2009-03-1216-32/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/base/ftobjs.c (FT_New_Face, FT_New_Memory_Face): Initialize `args.stream' (#3874, #3875). (open_face_PS_from_sfnt_stream): Improve error management (#3786). * src/base/ftmm.c (ft_face_get_mm_service): Fix check of `aservice' (#3870). * src/base/ftstroke.c (ft_stroke_border_get_counts): Remove dead code (#3790). * src/base/ftrfork.c (raccess_guess_apple_generic): Check error value of `FT_Stream_Skip' (#3784). * src/type1/t1gload.c (T1_Load_Glyph): Check `size' before accessing it (#3872) * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Check `face' before accessing it (#3871). * src/pcf/pcfread.c (pcf_get_metrics): Handle return value of `pcf_get_metric' (#3789, #3782). (pcf_get_properties): Use FT_STREAM_SKIP (#3783). * src/cache/ftcmanag.c (FTC_Manager_RegisterCache): Fix check of `acache' (#3797) * src/cff/cffdrivr.c (cff_ps_get_font_info): Fix check of `cff' (#3796). * src/cff/cffgload.c (cff_decoder_prepare): Check `size' (#3795). * src/cff/cffload.c (cff_index_get_pointers): Add comment (#3794). * src/bdf/bdflib.c (_bdf_add_property): Check `fp->value.atom' (#3793). (_bdf_parse_start): Add comment (#3792). * src/raster/ftraster.c (Finalize_Profile_Table): Check `ras.fProfile' (#3791). * src/sfnt/ttsbit.c (Load_SBit_Image): Use FT_STREAM_SKIP (#3785). * src/gzip/ftgzip.c (ft_gzip_get_uncompressed_size): Properly ignore seek error (#3781).
* Typo.Werner Lemberg2009-03-111-1/+1
|
* Extend CID service functions to handle CID-keyed CFFs as CID fonts.Werner Lemberg2009-03-118-10/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | * include/freetype/ftcid.h (FT_Get_CID_Is_Internally_CID_keyed, FT_Get_CID_From_Glyph_Index): New functions. * include/freetype/internal/services/svcid.h (FT_CID_GetIsInternallyCIDKeyedFunc, FT_CID_GetCIDFromGlyphIndexFunc): New function typedefs. (CID Service): Use them. * src/base/ftcid.c: Include FT_CID_H. (FT_Get_CID_Is_Internally_CID_keyed, FT_Get_CID_From_Glyph_Index): New functions. * src/cff/cffdrivr.c (cff_get_is_cid, cff_get_cid_from_glyph_index): New functions. (cff_service_cid_info): Add them. * src/cff/cffload.c (cff_font_load): Don't free `font->charset.sids' -- it is needed for access as a CID-keyed font. It gets deleted later on. * src/cid/cidriver.c (cid_get_is_cid, cid_get_cid_from_glyph_index): New functions. (cid_service_cid_info): Add them. * docs/CHANGES: Updated.
* Fix Savannah bug #25597.Werner Lemberg2009-03-112-2/+9
| | | | | * src/cff/cffparse.c (cff_parse_real): Don't allow fraction_length to become larger than 9.
* Minor update.Werner Lemberg2009-03-111-0/+2
|
* Fix Savannah bug #25814.Werner Lemberg2009-03-112-1/+9
| | | | | * builds/unix/freetype2.in: As suggested in the bug report, move @LIBZ@ to `Libs.private'.
* Fix Savannah bug #25781.Werner Lemberg2009-03-112-41/+88
| | | | | | | | | | We now simply check for a valid `offset', no longer handling `delta = 1' specially. * src/sfnt/ttcmap.c (tt_cmap4_validate): Don't check `delta' for last segment. (tt_cmap4_set_range, tt_cmap4_char_map_linear, tt_cmap4_char_map_binary): Check offset.
* * src/base/Jamfile: Fix handling of ftadvanc.c.Werner Lemberg2009-03-113-12/+20
| | | | Reported by Oran Agra <oran@monfort.co.il>.
* Restructure Win32 and Wince compiler support.Werner Lemberg2009-03-1016-15/+20908
| | | | | | | | | * src/builds/win32: Remove files for WinCE. Move VC 2005 support to a separate directory. Add directory for VC 2008 support. * src/builds/wince: New directory hierarchy for WinCE compilers (VC 2005 and VC 2008).
* More preparations for 2.3.9 release.Werner Lemberg2009-03-094-7/+15
| | | | | | * docs/CHANGES: Updated. * Jamfile, README: s/2.3.8/2.3.9/, s/238/239/.
* * src/sfnt/rules.mk (SFNT_DRV_H): Add ttsbit0.c.Werner Lemberg2009-03-092-3/+10
|
* Fix handling of EBDT formats 8 and 9 (part 2).Werner Lemberg2009-03-092-16/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes the following problems in ttsbit0.c: . Bitmaps for compound glyphs were never allocated. . `SBitDecoder' refused to load metrics if some other metrics have already been loaded. This condition certainly makes no sense for recursive calls, so I've just disabled it. Another possibility would be resetting `decoder->metrics_loaded' to false before loading each composite component. However, we must restore the original metrics after finishing the recursion; otherwise we can get a misaligned glyph. . `tt_sbit_decoder_load_bit_aligned' incorrectly handled `x_pos', causing some glyph components to be shifted too far to the right (especially noticeable for small sizes). Note that support for grayscale bitmaps (not necessarily compound) is completely broken in ttsbit0.c. * src/sfnt/tt_sbit_decoder_load_metrics: Always load metrics. (tt_sbit_decoder_load_bit_aligned): Handle `x_pos' correctly in case of `h == height'. (tt_sbit_decoder_load_compound): Reset metrics after loading components. Allocate bitmap.
* * builds/unix/configure.raw (version_info): Set to 9:20:3.Werner Lemberg2009-03-092-3/+5
|
* Formatting.Werner Lemberg2009-03-033-15/+16
|
* Fix SFNT kerning table parser against malformed tables.David Turner2009-03-033-7/+31
| | | | | | | | Closes Savannah BUG #25750 * src/sfnt/ttkern.c (tt_face_get_kerning): fix a bug where a malformed table would be succesfully loaded but later crash the engine during parsing.
* Formatting, copyright years.Werner Lemberg2009-03-0313-93/+126
|
* Update documentation and bump version number to 2.3.9David Turner2009-03-034-12/+46
| | | | | | | | * include/freetype/freetype.h: bump patch version to 9 * docs/CHANGES: document the ABI break in 2.3.8 * docs/VERSION.DLL: update version numbers table for 2.3.9 * builds/unix/configure.ac: update AC_INIT and version_info numbers.
* Minor typos.Werner Lemberg2009-03-032-3/+3
|
* Remove ABI-breaking field in public PS_InfoFontRec definition.David Turner2009-03-0315-10/+119
| | | | | | Instead, we define a new internal PS_FontExtraRec structure to hold the additionnal field, then place it in various internal positions of the corresponding FT_Face derived objects.
* Remove dead code.Werner Lemberg2009-03-021-62/+12
| | | | Minor formatting.
* Fix handling of EBDT formats 8 and 9.Werner Lemberg2009-03-022-5/+18
| | | | | | | | | | The main cycle in `blit_sbit' makes too many iterations: it actually needs the count of lines in the source bitmap rather than in the target image. * src/sfnt/ttsbit.c (blit_sbit) [FT_CONFIG_OPTION_OLD_INTERNALS]: Add parameter `source_height' and use it for main loop. (Load_SBit_Single) [FT_CONFIG_OPTION_OLD_INTERNALS]: Updated.
* Fix Savannah bug #25669.Werner Lemberg2009-02-245-16/+32
| | | | | | | | | | | | * src/base/ftadvanc.h (FT_Get_Advances): Fix serious typo. * src/base/ftobjs.c (FT_Select_Metrics, FT_Request_Metrics): Fix scaling factor for non-scalable fonts. * src/cff/cffdrivr.c (cff_get_advances): Use correct advance width value to prevent incorrect scaling. * docs/CHANGES: Document it.
* Fix Savannah bug #25588.Werner Lemberg2009-02-152-8/+15
| | | | | * builds/unix/ftconfig.in (FT_MulFix_arm): Use correct syntax for `orr' instruction.
* Minor documentation fixes.Werner Lemberg2009-02-121-170/+169
| | | | Formatting.
* * src/truetype/ttobjs.c (tt_check_trickyness): Add `DFKaiShu'.Werner Lemberg2009-02-112-1/+7
| | | | Reported by David Bevan <dbevan@emtex.com>.
* Fix Savannah bug #25495.Werner Lemberg2009-02-092-67/+77
| | | | | | | * src/sfnt/sfobjs.c (sfnt_load_face): Test for bitmap strikes before setting metrics and bbox values. This ensures that the check for a font with neither a `glyf' table nor bitmap strikes can be performed early enough to set metrics and bbox values too.
* Fix Savannah bug #25480.Werner Lemberg2009-02-042-12/+22
| | | | | * builds/unix/freetype-config.in: For --ftversion, don't use $prefix but $includedir.
* Minor docmaker improvements.Werner Lemberg2009-01-303-11/+20
| | | | | * src/tools/docmaker/content.py (DocBlock::__init__): Ignore empty code blocks.
* Fix SCANCTRL handling in TTFs.Werner Lemberg2009-01-252-3/+10
| | | | | | Problem reported by Alexey Kryukov <anagnost@yandex.ru>. * src/truetype/ttinterp.c (Ins_SCANCTRL): Fix threshold handling.
* Move FT_Get_FSType_Flags to a separate file.Werner Lemberg2009-01-2219-73/+188
| | | | | | | | | | | | | | | Problem reported by Mickey Gabel <mickey@monfort.co.il>. * src/base/ftobjs.c (FT_Get_FSType_Flags): Move to... * src/base/ftfstype.c: This new file. * modules.cfg (BASE_EXTENSION): Add ftfstype.c. * docs/INSTALL.ANY: Updated. * builds/mac/*.txt, builds/amiga/*makefile*, builds/win32/{visualc,visualce}/freetype.*, builds/symbian/*: Updated.
* Formatting.Werner Lemberg2009-01-221-1/+3
|
* * builds/unix/ftsystem.c: Fix 2 error messages ending without LINEFEEDSuzuki, Toshiya (鈴木俊哉)2009-01-222-2/+7
|
* * Fix a bug in POSIX resource-fork accessor since 2008-10-04Suzuki, Toshiya (鈴木俊哉)2009-01-223-1/+20
|
* Fix documentation buglets.Werner Lemberg2009-01-191-5/+4
| | | | Reported by Le Tan Phu <phult@necsv.com>, in report V0021 sent to ft-devel.
* Fix Savannah bug #25355.Werner Lemberg2009-01-192-3/+11
| | | | | | * include/freetype/config/ftconfig.h (FT_MulFix_i386): Make assembler code work with gcc 2.95.3 (as used by the Haiku project). Add `cc' register to the clobber list.
* Documentation fixes.Werner Lemberg2009-01-193-9/+9
| | | | | Reported by Chi Nguyen <chint@necsv.com>, in document V0026 sent to ft-devel.
* Documentation fixes.Werner Lemberg2009-01-193-6/+6
| | | | | Suggested by Chi Nguyen <chint@necsv.com> in document V0024 sent to the ft-devel list.
* Protect FT_Get_Next_Char.Werner Lemberg2009-01-182-1/+18
| | | | | | | * src/sfnt/ttcmap.c (tt_cmap4_set_range): Apply fix similar to change from 2008-07-22. Patch from Ronen Ghoshal <rghoshal@emtex.com>.
* Implement FT_Get_Name_Index for SFNT driver.Werner Lemberg2009-01-182-2/+36
| | | | | | | * src/sfnt/sfdriver.c (sfnt_get_name_index): New function. (sfnt_service_glyph_dict): Use it. Problem reported by Truc Truong <tructv@necsv.com>.
* Fix documentation of FT_Outline_GetInsideBorder.Werner Lemberg2009-01-183-2/+24
| | | | | | | * include/freetype/ftstroke.h (FT_Outline_GetInsideBorder): Fix documentation. Problem reported by Truc Truong <tructv@necsv.com>. * docs/CHANGES: Updated.
* * Version 2.3.8 released.VER-2-3-8Werner Lemberg2009-01-1412-90/+115
| | | | | | | | | | | | | | | | | | | | | | | ========================= Tag sources with `VER-2-3-8'. * docs/VERSION.DLL: Update documentation and bump version number to 2.3.8. * README, Jamfile (RefDoc), builds/win32/visualc/index.html, builds/win32/visualc/freetype.dsp, builds/win32/visualc/freetype.vcproj, builds/win32/visualce/index.html, builds/win32/visualce/freetype.dsp, builds/win32/visualce/freetype.vcproj: s/2.3.7/2.3.8/, s/237/238/. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 8. * builds/unix/configure.raw (version_info): Set to 9:19:3. * docs/release: Updated.
* builds/toplevel.mk (dist): Compress better.Werner Lemberg2009-01-142-4/+8
|
* Fix C++ compilation.Werner Lemberg2009-01-132-3/+8
| | | | | * src/base/ftobjs.c (FT_Get_FSType_Flags): Cast for compilation with C++.
* Don't use stdlib.h and friends directly.Werner Lemberg2009-01-138-14/+29
| | | | | | | | | | | | | | Reported by Mickey Gabel <mickey@monfort.co.il>. * src/base/ftdbgmem.c: s/<stdlib.h>/FT_CONFIG_STANDARD_LIBRARY_H/. * src/gzip/ftgzip.c, src/lzw/ftlzw.c, src/raster/ftmisc.h: s/<string.h>/FT_CONFIG_STANDARD_LIBRARY_H/. * src/autofit/aftypes.h, src/autofit/afhints.c, src/pshinter/pshalgo.c: s/<stdio.h>/FT_CONFIG_STANDARD_LIBRARY_H/ * src/lzw/ftlzw.c, src/base/ftdbgmem.c: Don't include stdio.h.
* Avoid compiler warnings.Werner Lemberg2009-01-127-22/+29
| | | | | * */*: s/do ; while ( 0 )/do { } while ( 0 )/. Reported by Sean McBride <sean@rogue-research.com>.
* Fix stdlib dependencies.Werner Lemberg2009-01-126-29/+32
| | | | | | | | | | Problem reported by Mickey Gabel <mickey@monfort.co.il>. * include/freetype/config/ftstdlib.h (ft_exit): Removed. Unused. * src/autofit/afhints.c, src/base/ftlcdfil.c, src/smooth/ftsmooth.c: s/memcpy/ft_memcpy/. * src/psaux/t1decode.c: s/memset/ft_memset/, s/memcpy/ft_memcpy/.