summaryrefslogtreecommitdiff
path: root/src/base/ftmac.c
Commit message (Collapse)AuthorAgeFilesLines
* Update all copyright notices.Werner Lemberg2023-01-171-1/+1
|
* [build] fix for make multisuzuki toshiya2022-11-081-0/+1
| | | | | | | | Fix "make multi" by MR !223 * include/freetype/internal/services/svmm.h: include ftmm.h to define FT_Get_MM_Func. * src/truetype/ttgxvar.h: include ftmmtypes.h to use GX_AVarTable properly. * src/base/ftmac.c: include ftdebug.h to use FT_THROW() properly.
* Whitespace.Werner Lemberg2022-04-011-2/+2
|
* * builds/mac/ftmac.c, src/base/ftmac.c: s|FT_MAC_H|<freetype/ftmac.h>|.Werner Lemberg2022-02-191-1/+1
|
* Update all copyright notices.Werner Lemberg2022-01-111-1/+1
|
* Minor.Alexei Podtelezhnikov2021-09-201-1/+1
|
* [base] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.Alexei Podtelezhnikov2021-04-221-2/+2
| | | | | | | | * src/base/ftobjs.c (open_face_PS_from_sfnt_stream, Mac_Read_sfnt_Resource): Do not zero out the buffer. * src/base/ftmac.c (FT_New_Face_From_SFNT, read_lwfn): Ditto. * src/base/ftrfork.c (raccess_make_file_name, raccess_guess_darwin_hfsplus, raccess_guess_darwin_newvfs): Ditto.
* Update all copyright notices.Werner Lemberg2021-01-171-1/+1
|
* Remove redundant inclusion of `ft2build.h'.Werner Lemberg2020-06-131-1/+0
| | | | | | | * */*: Remove `#include <ft2build.h>' where possible. * include/freetype/freetype.h: Remove cpp error about missing inclusion of `ft2build.h'.
* Make macros for header file names optional.David Turner2020-06-081-3/+3
| | | | | | | | | | | | | | | | | We no longer have to take care of the 8.3 file name limit; this allows us (a) to introduce longer, meaningful file names, and (b) to avoid macro names in `#include' lines altogether since some compilers (most notably Visual C++) doesn't support this properly. */*: Replace #include FOO_H with #include <freetype/foo.h> or something similar. Also update the documentation.
* Update all copyright notices.Werner Lemberg2020-01-191-1/+1
|
* Update all copyright notices.Werner Lemberg2019-02-231-1/+1
|
* Update copyright years.Werner Lemberg2019-01-221-1/+1
|
* Restore missing comment lines and other minor fixesNikhil Ramakrishnan2018-06-041-0/+2
|
* [GSoC] src/*.*: Convert block comments to `light' style.Werner Lemberg2018-06-031-52/+52
| | | | | | | | | | | This monster commit was created by applying Nikhil's scripts `docconverter.py' and `markify.py' to all C header and source files, followed up by minor manual clean-up. No change in functionality, of course. I used commit f7419907bc6044b9b7057f9789866426c804ba82 from https://github.com/nikramakrishnan/freetype-docs.git.
* Update copyright year.Werner Lemberg2018-01-021-1/+1
|
* Branding fixes.Alexei Podtelezhnikov2017-09-071-1/+1
|
* Improve `make multi'.Werner Lemberg2017-03-181-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/autofit/aflatin2.c: Guard file with FT_OPTION_AUTOFIT2. * src/base/ftmac.c: Guard more parts of the file with FT_MACINTOSH. * src/psaux/afmparse.c: Guard file with T1_CONFIG_OPTION_NO_AFM. * src/sfnt/pngshim.c: Guard file with TT_CONFIG_OPTION_EMBEDDED_BITMAPS also. * src/sfnt/ttbdf.c: Avoid empty source file. * src/sfnt/ttpost.c: Guard file with TT_CONFIG_OPTION_POSTSCRIPT_NAMES. * src/sfnt/ttsbit.c: Guard file with TT_CONFIG_OPTION_EMBEDDED_BITMAPS. * src/truetype/ttgxvar.c, src/truetype/ttinterp.c: Avoid empty source file. * src/truetype/ttsubpix.c: Guard file with TT_USE_BYTECODE_INTERPRETER also. * src/type1/t1afm.c: Guard file with T1_CONFIG_OPTION_NO_AFM. * src/autofit/autofit.c, src/base/ftbase.c, src/cache/ftcache.c, src/cff/cff.c, src/cid/type1cid.c, src/gxvalid/gxvalid.c, src/pcf/pcf.c, src/pfr/pfr.c, src/psaux/psaux.c, src/pshinter/pshinter.c, src/psnames/psnames.c, src/raster/raster.c, src/sfnt/sfnt.c, src/smooth/smooth.c, src/truetype/truetype.c, src/type1/type1.c, src/type42/type42.c: Remove conditionals; sort entries.
* Update copyright year.Werner Lemberg2017-01-041-1/+1
|
* Replace `++foo' and `--foo' with `foo++' and `foo--', resp.Werner Lemberg2016-12-261-1/+1
|
* Replace `foo == NULL' and `foo != NULL' with `!foo' and `foo', resp.Werner Lemberg2016-12-261-4/+4
| | | | Other minor formatting.
* More code formatting.Werner Lemberg2016-12-171-1/+1
|
* Use FT_SET_ERROR where useful. Other minor code formatting.Werner Lemberg2016-12-171-7/+9
|
* Whitespace.Werner Lemberg2016-02-151-1/+1
|
* Update copyright year.Werner Lemberg2016-01-131-1/+1
|
* [mac] Fix buffer size calculation for LWFN font.suzuki toshiya2015-09-281-1/+1
| | | | | * src/base/ftmac.c (read_lwfn): Cast post_size to FT_ULong to prevent confused copy by too large chunk size.
* [base] Check too long POST and sfnt resource (#45919).suzuki toshiya2015-09-211-2/+7
| | | | | | | | | | | | | | | | | | | | * src/base/ftbase.h (FT_MAC_RFORK_MAX_LEN): Maximum length of the resource fork for Mac OS. The resource fork larger than 16 MB can be written but could not be handled correctly, at least in Carbon routine. See https://support.microsoft.com/en-us/kb/130437 * src/base/ftobjs.c (Mac_Read_POST_Resource): No need `0x' for `%p' formatter. * src/base/ftbase.c (Mac_Read_POST_Resource): Check the fragment and total size of the concatenated POST resource before buffer allocation. (Mac_Read_sfnt_Resource): Check the declared size of sfnt resource before buffer allocation. * src/base/ftmac.c (read_lwfn, FT_New_Face_From_SFNT): Check the total resource size before buffer allocation.
* Run `src/tools/update-copyright'.Werner Lemberg2015-01-171-1/+1
|
* * src/*: Add checks for parameters of API functions where missing.Werner Lemberg2014-11-261-3/+17
| | | | | | | | | | | | | | | | | | | | `API functions' are functions tagged with `FT_EXPORT_DEF'. Besides trivial fixes, the following changes are included, too. * src/base/ftbdf.c (FT_Get_BDF_Charset_ID, FT_Get_BDF_Property): Set error code if no service is available. * src/base/ftinit.c (FT_Done_FreeType): Change return value for invalid `library' parameter to `Invalid_Library_Handle'. * src/base/ftobjs.c (FT_New_Size): Change return value for invalid `asize' parameter to `Invalid_Argument'. * src/base/ftoutln.c (FT_Outline_Copy): Change return value for invalid `source' and `target' parameters to `Invalid_Outline'. (FT_Outline_Done_Internal): Change return value for invalid `outline' parameter to `Invalid_Outline'.
* Fix Savannah bug #43540.suzuki toshiya2014-11-261-2/+3
| | | | | | * src/base/ftmac.c (parse_fond): Prevent a buffer overrun caused by a font including too many (> 63) strings to store names[] table.
* Another round of cppcheck nitpicks.Werner Lemberg2013-08-011-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | The call was (from the top-level of the FreeType tree): cppcheck --force \ --enable=all \ -I /usr/include \ -I /usr/local/include \ -I /usr/lib/gcc/i586-suse-linux/4.7/include \ -I include \ -I include/freetype \ -I include/freetype/config \ -I include/freetype/internal \ -DFT2_BUILD_LIBRARY \ . &> cppcheck.log using cppcheck git commit f7e93f99. Note that cppcheck still can't handle `#include FOO' (with `FOO' a macro). */* Improve variable scopes. */* Remove redundant initializations which get overwritten. * src/gxvalid/*: Comment out redundant code or guard it with FT_DEBUG_LEVEL_TRACE.
* Apply fixes for cppcheck nitpicks.Werner Lemberg2013-06-041-3/+4
| | | | | | | | | | | | | | | | | | | | | http://cppcheck.sourceforge.net/ Note that the current version heavily chokes on FreeType, delivering even wrong results. I will report those issues to the cppcheck team so that a newer version gives improved results hopefully. */* Improve variable scopes. */* Remove redundant initializations which get overwritten. * src/base/ftmac.c ,builds/mac/ftmac.c (count_faces_scalable): Remove unused variable. * src/base/ftdbgmem.c (ft_mem_table_destroy): `table' can't be zero. * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt1_entry_validate): Remove functionless code. * src/tools/ftrandom.c (main): Fix memory leak.
* */*: Use FT_ERR_EQ, FT_ERR_NEQ, and FT_ERR where appropriate.Werner Lemberg2013-03-141-7/+7
| | | | | FT_Err_XXX and friends are no longer directly used in the source code.
* */*: Use `FT_THROW'.Werner Lemberg2013-03-141-27/+26
| | | | | | | | | | This is essentially a mechanical conversion, adding inclusion of `FT_INTERNAL_DEBUG_H' where necessary, and providing the macros for stand-alone compiling modes of the rasterizer modules. To convert the remaining occurrences of FT_Err_XXX and friends it is necessary to rewrite the code. Note, however, that it doesn't harm if some cases are not handled since FT_THROW is a no-op.
* Remove trailing spaces.suzuki toshiya2012-01-171-1/+1
|
* [mac] Unify DARWIN_NO_CARBON with FT_MACINTOSH.suzuki toshiya2011-12-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Minor fixes.Werner Lemberg2009-01-061-10/+5
| | | | | | * src/base/ftdbgmem.c (_debug_mem_dummy): Make it static. * src/base/ftmac.c: Remove some #undefs.
* {src/base,builds/mac}/ftobjs.c: Include FT_TRUETYPE_TAGS_H for multi buildSuzuki, Toshiya (鈴木俊哉)2008-10-051-0/+1
|
* Introduce macros for some MacOS-specific resource tagsSuzuki, Toshiya (鈴木俊哉)2008-10-041-9/+6
|
* * New function `open_face_PS_from_sfnt_stream' to check and open a Type1 PS ↵Suzuki, Toshiya (鈴木俊哉)2008-10-041-21/+12
| | | | or CID-keyed font in an sfnt stream.
* * Merge the duplicated functions in ftmac.c with ftobjs.cSuzuki, Toshiya (鈴木俊哉)2008-10-021-158/+1
|
* Formatting, minor code fixes.Werner Lemberg2008-09-201-8/+11
|
* * src/base/ftoutln.c: Include FT_INTERNAL_DEBUG_H.Werner Lemberg2008-09-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | (FT_Outline_Decompose): Decorate with tracing messages. * src/smooth/ftgrays.c [DEBUG_GRAYS]: Replace with FT_DEBUG_LEVEL_TRACE. [_STANDALONE_ && FT_DEBUG_LEVEL_TRACE]: Include stdio.h and stdarg.h. (FT_TRACE) [_STANDALONE_]: Remove. (FT_Message) [_STANDALONE_ && FT_DEBUG_LEVEL_TRACE]: New function. (FT_TRACE5, FT_TRACE7) [_STANDALONE_]: New macros. (FT_ERROR) [_STANDALONE_]: Updated. (gray_hline) [FT_DEBUG_LEVEL_TRACE]: Fix condition. Use FT_TRACE7. (gray_dump_cells): Make it `static void'. (graay_convert_glyph): Use FT_TRACE7. (FT_Outline_Decompose) [_STANDALONE_]: Synchronize with version in ftoutln.c. * src/base/ftadvanc.c (FT_Get_Advance, FT_Get_Advances): Use FT_ERROR_BASE. Other minor modifications.
* * ftmac.c: Import sfnt-wrapped Type1/CID font supportSuzuki, Toshiya (鈴木俊哉)2008-09-191-11/+96
|
* Formatting.Werner Lemberg2008-08-191-8/+8
|
* * src/base/ftmac.c: Add a fallback for the case that ↵Suzuki, Toshiya (鈴木俊哉)2008-08-181-2/+14
| | | | HAVE_TYPE_RESOURCE_INDEX is not set by configure
* Fix for 10.4u SDK bundled to Mac OS X 10.5Suzuki, Toshiya (鈴木俊哉)2008-06-241-5/+5
|
* * src/base/ftmac.c (FT_New_Face_From_Suitcase): Check if valid aface is ↵Suzuki, Toshiya (鈴木俊哉)2008-05-201-1/+1
| | | | returned by FT_New_Face_From_FOND()
* minor improvements, copyright yearsWerner Lemberg2008-02-211-1/+1
|
* * src/base/ftmac.c: Fix a bug of PostScript font name synthesis in parse_fond().Suzuki, Toshiya (鈴木俊哉)2008-02-211-2/+7
|