Werner Lemberg
f765e4403c
*/*: Use module specific error names where appropriate.
2010-06-24 10:34:29 +02:00
Michał Cichoń
08e254e0a6
Fix Savannah bug #27999 .
...
* src/cache/ftcmanag.c (FTC_Manager_RemoveFaceID): Only remove
selected entry, not all.
2010-04-14 21:25:30 +02:00
Werner Lemberg
64ed303897
Whitespace.
2009-12-20 18:12:57 +01:00
Werner Lemberg
ca87cd0bda
Fix `make multi'.
...
* src/cache/ftccache.c, src/cache/ftcsbits.c (FT_COMPONENT): Define.
* src/sfnt/sfdriver.c: Include FT_INTERNAL_DEBUG_H.
2009-10-06 11:09:29 +02:00
suzuki toshiya
6167357e8f
[cache] Fold too long lines.
2009-09-29 03:19:47 +09:00
suzuki toshiya
82633a2440
[cache] Fix Savannah bug #27441 , cleanup Redhat bugzilla #513582 .
2009-09-27 16:55:44 +09:00
suzuki toshiya
f2647ddabb
[cache, psaux, type1] Fix for multi build.
2009-09-26 00:48:37 +09:00
suzuki toshiya
4e0c9ee155
[cache] Check the face filled by FTC_Manager_LookupFace().
2009-09-24 14:30:40 +09:00
suzuki toshiya
5d3ff05615
cache: Check higher bits in flags for non ILP32 systems.
2009-08-01 00:32:24 +09:00
suzuki toshiya
f7c6b11691
cache: Insert explict casts for LP64 systems.
2009-08-01 00:32:10 +09:00
suzuki toshiya
ed1d359025
cache: Fix some data types mismatching with their sources.
2009-08-01 00:32:10 +09:00
suzuki toshiya
f4e1c8bdda
cache: Disable the legacy compatibility if 16-bit system.
2009-08-01 00:30:20 +09:00
suzuki toshiya
2a5831ec07
cache: Check 32-bit glyph index on 16-bit systems.
2009-08-01 00:30:19 +09:00
suzuki toshiya
b566d42aa0
cache: Fix some data types mismatching with their sources.
2009-08-01 00:30:19 +09:00
suzuki toshiya
ebf8e294fc
cache: Fix some data types mismatching with their sources.
2009-08-01 00:30:19 +09:00
suzuki toshiya
9f50873a81
cache: Cast NULL to a required function type explicitly.
2009-08-01 00:30:18 +09:00
Werner Lemberg
7009a6eb03
Fix Redhat bugzilla #513582 and Savannah bug #26849 .
...
* src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP) <FTC_INLINE>: Fix
aliasing bug.
2009-07-29 11:53:13 +02:00
Werner Lemberg
858abbedc0
For warning messages, replace FT_ERROR with FT_TRACE0.
...
FT_ERROR is now used only if a function produces a non-zero `error'
value.
Formatting, improving and harmonizing debug strings.
2009-06-26 06:15:41 +02:00
Oran Agra
1dcd0f2399
Add #error to modules and files that do not support PIC yet.
...
When FT_CONFIG_OPTION_PIC is defined the following files will
create #error:
* src/bdf/bdfdrivr.h
* src/cache/ftcmanag.c
* src/cid/cidriver.h
* src/gxvalid/gxvmod.h
* src/gzip/ftgzip.c
* src/lzw/ftlzw.c
* src/otvalid/otvmod.h
* src/pcf/pcfdrivr.h
* src/pfr/pfrdrivr.h
* src/psaux/psauxmod.h
* src/type1/t1driver.h
* src/type42/t42drivr.h
* src/winfonts/winfnt.h
2009-04-05 18:25:14 +03:00
Werner Lemberg
86e041b5a8
Remove redundant header inclusions.
...
This covers many Ghostscript Coverity issues.
* src/*: Do it.
2009-03-21 08:51:44 +01:00
Werner Lemberg
f4a82bee1e
Whitespace.
2009-03-20 16:10:26 +01:00
Werner Lemberg
9dbfac22bc
Fix Savannah bug #25923 .
...
* src/cache/ftccmap.c (FTC_CMAP_HASH): Fix typo.
2009-03-20 09:13:59 +01:00
Werner Lemberg
b66efefdcd
Fix some FreeType Coverity issues as reported for Ghostscript.
...
* 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 ).
2009-03-12 08:07:49 +00:00
Werner Lemberg
3c5ad95166
* src/pfr/pfrdrivr.c, src/winfonts/winfnt.c, src/cache/ftcmanag.c,
...
src/smooth/ftgrays.c, src/base/ftobjc.s, src/sfobjs.c:
s/_Err_Bad_Argument/_Err_Invalid_Argument/. The former is for
errors in the bytecode interpreter only.
2008-12-21 17:51:12 +00:00
Werner Lemberg
89a1a51834
* builds/freetype.mk (BASE_H): Rename to...
...
(INTERNAL_H): This.
(FREETYPE_H): Updated.
* src/base/rules.mk: (BASE_OBJ_S, OBJ_DIR/%.$O): Add BASE_H.
* src/bdf/rules.mk (BDF_DRV_H): Add bdferror.h.
* src/cache/rules.mk (CACHE_DRV_H): Add ftccache.h and ftcsbits.h.
* src/pcf/rules.mk (PCF_DRV_H): Add pcfread.h.
* src/raster/rules.mk (RASTER_DRV_H): Add ftmisc.h.
* src/type42/rules.mk (T42_DRV_H): Add t42types.h.
2008-10-02 06:48:10 +00:00
Werner Lemberg
b211651ac9
* autogen.sh, builds/unix/configure.raw,
...
include/freetype/config/ftconfig.h, builds/unix/ftconfig.in: Minor
beautifying.
* include/freetype/ftadvanc.h, include/freetype/ftgasp.h,
include/freetype/ftlcdfil.h: Protect against FreeType 1.
Some other minor fixes.
* devel/ftoption.h: Synchronize with
include/freetype/config/ftoption.h.
Formatting, documentation improvements.
2008-09-12 16:27:48 +00:00
David Turner
17cd687266
* include/freetype/ftcache.h, src/cache/ftccmap.c:
...
modify FTC_CMapCache_Lookup to accept a negative cmap index
to mean "use default cached FT_Face's charmap". This fixes
Savannah issue #22625
2008-09-02 02:34:29 +00:00
Werner Lemberg
b9933f4b02
* src/base/ftobjs.c (FT_Request_Metrics), src/cache/ftccmap.c
...
(FTC_CMapCache_Lookup): Remove unused code.
2007-06-01 21:27:12 +00:00
Werner Lemberg
95bc9d3a07
* src/cache/ftccache.c (ftc_node_mru_link, ftc_node_mru_unlink),
...
src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP), src/cache/ftcglyph.h
(FTC_GCACHE_LOOKUP_CMP), src/pshinter/pshmod.c (ps_hinter_init),
src/sfnt/ttmtx.c (tt_face_load_hmtx, tt_face_load_hhea,
tt_face_get_metrics): Fix type-punning issues.
2007-05-16 15:19:42 +00:00
Werner Lemberg
56ceaa4853
Formatting.
2007-05-14 18:53:58 +00:00
David Turner
711cf84749
implement FTC_ImageCache_LookupScaler and FTC_SBitCache_LookupScaler,
...
which allow us to specify the font size with a FTC_Scaler structure,
hence enabling fractional point sizes, etc...
2007-05-11 14:36:24 +00:00
Werner Lemberg
545c4e566e
* src/truetype/ttgload.c (TT_Load_Composite_Glyph)
...
[FT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Make it compilable again.
Formatting, documentation fixes.
2006-05-17 22:55:04 +00:00
David Turner
dc3ff31c3f
* src/ftccmap.c (FTC_CMapCache_Lookup): changed the threshold
...
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.
2006-05-17 12:59:35 +00:00
Werner Lemberg
8fe6539026
Further C library abstraction. Based on a patch from
...
msn2@bidyut.com .
* include/freetype/config/ftstdlib.h (FT_CHAR_BIT, FT_FILE,
ft_fopen, ft_fclose, ft_fseek, ft_ftell, ft_fread, ft_smalloc,
ft_scalloc, ft_srealloc, ft_sfree, ft_labs): New wrapper macros for
C library functions. Update all users accordingly (and catch some
other places where the C library function was used instead of the
wrapper functions).
* src/base/ftsystem.c: Don't include stdio.h and stdlib.h.
* src/gzip/zutil.h [MSDOS && !(__TURBOC__ || __BORLANDC__)]: Don't
include malloc.h.
2006-04-29 07:31:16 +00:00
Werner Lemberg
af16820a12
Normalize quotation to `...'.
2006-03-24 12:46:49 +00:00
Werner Lemberg
6c5b617c59
* src/cache/ftccache.c, (ftc_node_mru_up, FTC_Cache_Lookup)
...
[!FTC_INLINE]: Compile conditionally.
* src/cache/ftccache.h: Updated.
* src/cache/ftcglyph.c (FTC_GNode_Init, FTC_GNode_UnselectFamily,
FTC_GNode_Done, FTC_GNode_Compare, FTC_Family_Init, FTC_GCache_New):
s/FT_EXPORT/FT_LOCAL/.
(FTC_GCache_Init, FTC_GCache_Done): Commented out.
(FTC_GCache_Lookup) [!FTC_INLINE]: Compile conditionally.
s/FT_EXPORT/FT_LOCAL/.
* src/cache/ftcglyph.h: Updated.
* src/cache/ftcimage.c (FTC_INode_Free, FTC_INode_New):
s/FT_EXPORT/FT_LOCAL/.
(FTC_INode_Weight): Commented out.
* src/cache/ftcimage.h: Updated.
* src/cache/ftmanag.c (FTC_Manager_Compress,
FTC_Manager_RegisterCache, FTC_Manager_FlushN):
s/FT_EXPORT/FT_LOCAL/.
* src/cache/ftmanag.h: Updated.
* src/cache/ftcsbits.c (FTC_SNode_Free, FTC_SNode_New,
FTC_SNode_Compare): s/FT_EXPORT/FT_LOCAL/.
(FTC_SNode_Weight): Commented out.
* src/cache/ftcsbits.h: Updated.
2006-03-22 15:30:41 +00:00
Werner Lemberg
3867d2f2fb
* src/cache/ftccache.c, src/cache/ftccache.h (FTC_Node_Destroy):
...
Remove, unused.
* src/cache/ftccmap.h: Remove, unused.
* src/cache/rules.mk (CACHE_DRV_H): Remove ftccmap.h.
2006-03-22 08:03:06 +00:00
Werner Lemberg
5a73d8d20f
* builds/freetype.mk (CACHE_DIR, CACHE_H): Remove.
...
(FREETYPE_H): Updated.
* src/cache/rules.mk (CACHE_H_DIR): Remove.
(CACHE_DRV_H): Updated.
Formatting, copyright years.
2006-03-20 16:55:32 +00:00
David Turner
256de4b18f
* include/freetype/cache/ftccache.h,
...
include/freetype/cache/ftccmap.h,
include/freetype/cache/ftcglyph.h
include/freetype/cache/ftcimage.h
include/freetype/cache/ftcmanag.h
include/freetype/cache/ftcmru.h
include/freetype/cache/ftcsbits.h:
removing these header files from the public include directory.
* include/freetype/config/ftheader.h:
changing the definition of FT_CACHE_INTERNAL_XXX_H macros to
redirect to FT_CACHE_H instead
* src/cache/ftcbasic.c, src/cache/ftccache.c, src/cache/ftccache.h,
src/cache/ftccback.h, src/cache/ftccmap.c, src/cache/ftcglyph.c,
src/cache/ftcglyph.h, src/cache/ftcimage.c, src/cache/ftcimage.h,
src/cache/ftcmanag.c, src/cache/ftcmanag.h, src/cache/ftcmru.c,
src/cache/ftcmru.h, src/cache/ftcsbits.c, src/cache/ftcsbits.h:
modifications to prevent using the FT_CACHE_INTERNAL_XXX_H macros,
and grab the headers in 'src/cache' instead (see below).
2006-03-20 12:10:24 +00:00
David Turner
dad2a2de01
* src/cache/ftccache.h, src/cache/ftcglyph.h, src/cache/ftcimage.h,
...
src/cache/ftcsbits.h, src/cache/ftcmanag.h, src/cache/ftccmap.h,
src/cache/ftcmru.h: copying the cache's internal header files which
were located in 'include/freetype/cache' to the 'src/cache' directory
instead.
Note that these files are not used by FreeType clients, all cache
public APIs have been already moved to include/freetype/ftcache.h,
and the FT_CACHE_INTERNAL_XXXX_H macros all resolve to it.
the move is to allow us to modify the internals without intereference
from rogue clients. Note that there are no known client that accesses
the cache internals at the moment.
2006-03-20 11:48:13 +00:00
David Turner
65b96aad1e
* src/cache/ftcmanag.c (FTC_Manager_Lookup_Size): prevent crashes
...
in Mozilla/FireFox print preview in Ubuntu Hoary
2006-03-07 00:38:24 +00:00
Werner Lemberg
98d6a3acaa
* src/cache/ftccache.c (ftc_node_destroy)
...
[!FT_CONFIG_OPTION_OLD_INTERNALS]: Mark as FT_LOCAL_DEF. This
should now fix all possible compilation options.
2006-02-27 19:49:34 +00:00
Werner Lemberg
c07ee52005
* include/freetype/cache/ftccache.h
...
[FT_CONFIG_OPTION_OLD_INTERNALS]: Remove declaration of
ftc_node_done.
2006-02-27 18:13:12 +00:00
David Turner
c13e75fb1b
* src/base/ftutil.c: ft_mem_alloc and related functions now return an
...
error if a negative size is passed in parameters.
* src/cache/ftccache.c: make ftc_node_destroy FT_BASE_DEF, it needs to
be exported for rogue clients
* src/pshinter/pshglob.c: prevent problems with malformed fonts which
have an odd number of blue values (these are broken according to the
specs).
* src/cff/cffload.c, src/type1/t1load.c: modify the loaders to force
even-ness of 'num_blue_values'. Also change the CFF loader so that
invalid entries in index files are ignored.
2006-02-27 13:14:42 +00:00
Werner Lemberg
ae1e4b1577
* src/cache/ftccache.c (ftc_node_destroy): Use FT_LOCAL_DEF (again).
2006-02-25 17:11:04 +00:00
David Turner
de271ab8f0
* builds/unix/ftsystem.c, include/freetype/config/ftheader.h,
...
include/freetype/internal/services/svotval.h,
include/freetype/internal/services/svpfr.h,
src/base/ftsystem.c, src/bdf/bdfdrivr.c, src/cache/ftcbasic.c,
src/cff/cffcmap.c, src/gzip/ftgzip.c, src/lzw/ftlzw.c,
src/lzw/ftlzw2.c, src/psaux/t1cmap.c, src/sfnt/ttbdf.c,
src/smooth/ftgrays.c:
solved -Wmissing-prototypes warnings with GCC
2006-02-25 14:53:02 +00:00
Werner Lemberg
d7e6b76739
Formatting, copyright years, minor cleanups.
2006-02-25 06:24:28 +00:00
David Turner
ca7d76f789
* src/cache/ftcbasic.c: correcting compatibility hack bug
2006-02-24 09:09:10 +00:00
David Turner
a3873d2702
another try
2006-02-23 23:18:13 +00:00
David Turner
b0e0db116d
another hack
2006-02-23 23:03:39 +00:00