summaryrefslogtreecommitdiff
path: root/src/tools
Commit message (Collapse)AuthorAgeFilesLines
* Update all copyright notices.Werner Lemberg2022-01-113-3/+3
|
* * src/tools/apinames.c: Facilitate OpenVMS linker options.Alexei Podtelezhnikov2021-09-291-1/+17
|
* src/tools/ftrandom/ftrandom.c (_XOPEN_SOURCE): Set to 600.Werner Lemberg2021-09-071-1/+1
| | | | | | This allows C99 compilation on Solaris. Problem reported by Mojca Miklavec.
* Fix some `cppcheck` warnings.Werner Lemberg2021-07-241-2/+2
| | | | | | | | | | | | | | | | | | * src/bzip2/ftbzip2.c (ft_bzip2_file_skip_output), src/gzip/ftgzip.c (ft_gzip_file_skip_output): Reduce scope of `delta`. * src/psaux/psintrp.c, src/psaux/psintrp.h (cf2_interpT2CharString): Add `const` to `buf` parameter. * src/raster/ftraster.c (DelOld): Add `const` to `profile` parameter. (Vertical_Sweep_Span): Reduce scope of `target`. (FT_Outline_Get_CBox): Reduce scope of `xMin`, `xMax`, `yMin`, `yMax`. * src/smooth/ftgrays.c (gray_render_conic): Reduce scope of `split`. (gray_sweep, gray_sweep_direct): Reduce scope of `area`. * src/tools/apinames.c (names_dump) <OUTPUT_WATCOM_LBC>: Reduce scope of `temp`.
* Move 'dlg' submodule to `subprojects` directory.Werner Lemberg2021-02-161-1/+1
| | | | | | | | | | | | | | This is for future changes with Meson, which doesn't allow a different name for its `subprojects` directory. Having both a `submodules` and a `subprojects` directory is confusing. * .gitmodules, autogen.sh (copy_submodule_files, DLG_INC_DIR, DLG_SRC_DIR): Updated. * builds/toplevel.mk (<top-level>, do-dist), builds/windows/vc2010/script.bat: Updated. * src/tools/no-copyright: Updated.
* * src/tools/update-copyright-year: Fix single-year entry handling.Werner Lemberg2021-02-131-12/+31
| | | | | The fix from 2021-01-17 didn't cover the case where the year to be updated is identical to the current year.
* * src/tools/update-copyright-year: Fix single-year entry handling.Werner Lemberg2021-01-171-14/+14
|
* Update all copyright notices.Werner Lemberg2021-01-173-3/+3
|
* no-copyright: Updated.Werner Lemberg2021-01-171-2/+2
|
* * src/tools/chktrcmp.py (trace_use_pat): Update to current use.Werner Lemberg2020-12-011-2/+2
|
* Move `scripts/make_distribution_archives.py` to `src/tools`.Werner Lemberg2020-09-251-0/+208
| | | | | | | | | | * scr/tools/scripts/make_distribution_archives.py: (_TOP_DIR, _SCRIPT_DIR): Updated to new location. (main): s/shutils.copyfile/shutils.copy/ to preserve file permissions. (main): Prefix source file paths with `git_dir` while copying files to allow calls of the script from other places than the top-level directory.
* Remove redundant inclusion of `ft2build.h'.Werner Lemberg2020-06-133-3/+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-084-9/+9
| | | | | | | | | | | | | | | | | 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.
* Remove Jamfile files from the tree.David Turner2020-05-181-5/+0
| | | | | | | | These have not been used in a very, very long time, so better remove them. A corresponding patch will be submitted to the `freetype2-demos' repository. * src/Jamfile, src/*/Jamfile, Jamrules: Delete.
* Update all copyright notices.Werner Lemberg2020-01-193-3/+3
|
* * src/tools/apinames.c: Formatting, minor edits.Werner Lemberg2019-06-161-204/+237
|
* * src/tools/apinames.c (main): Fix error message.JDG2019-04-151-1/+1
| | | | | | Reported as https://savannah.nongnu.org/patch/?9796
* Update all copyright notices.Werner Lemberg2019-02-233-3/+3
|
* * src/tools/update-copyright-year: Insert `(C)'.Werner Lemberg2019-02-231-7/+10
|
* Update copyright years.Werner Lemberg2019-01-223-4/+4
|
* * src/tools/docmaker: Remove `docmaker'.Nikhil Ramakrishnan2018-08-258-2390/+0
| | | | | | `Docmaker' has now upgraded to `docwriter', a pip package available at https://pypi.org/project/docwriter/
* Move the legacy fuzz target to the `freetype-testing' repository.Armin Hasitzka2018-07-205-1010/+0
| | | | | | | | | It can now be found at https://github.com/freetype/freetype2-testing/tree/master/fuzzing/src/legacy * src/tools/ftfuzzer: Remove this folder and its contents from the repository.
* * src/tools/glnames.py (main): Emit header in `light' comment style.Werner Lemberg2018-06-031-24/+24
|
* [docmaker] Fix missing `Defined in (...)' under Windows/Cygwin.Nikhil Ramakrishnan2018-05-251-1/+2
| | | | | | | | | This platform uses backslashes for paths, which docmaker didn't understand correctly. * src/tools/docmaker/tohtml.py (HtmlFormatter::blockEnter): Use `os.path.normpath' to normalize the path for the platform being used.
* [docmaker] Make it work with python3.Ankit Dhankhar2018-04-155-83/+81
| | | | | * src/tools/docmaker (*.py): Use parentheses around arguments of `print'. Remove unused imports.
* [apinames] Anonymous version map for GNU linker.Alexei Podtelezhnikov2018-01-231-2/+17
| | | | | | | | * src/tools/apinames.c (PROGRAM_VERSION): Set to 0.3. (OutputFormat): Add `OUTPUT_GNU_VERMAP'. (names_dump): Handle it. (usage): Updated. (main): Handle new command line flag `-wL'.
* Update copyright year.Werner Lemberg2018-01-0214-15/+15
|
* [docmaker] Fix code section parsing.Werner Lemberg2017-12-081-7/+24
| | | | | | | | | | | | | | Stuff like { <bla> } confused the parser, which incorrectly treated `<bla>' as a markup tag. * src/tools/docmaker/content.py (ContentProcessor::process_content): Apply `re_markup_tags' only outside of code sections.
* New `ftdriver.h' file, covering all driver modules.Werner Lemberg2017-12-081-3/+2
| | | | | | | | | | | | | | | | | | | | | This reduces redundancy and increases synergy; it also reduces the number of header files. * include/freetype/config/ftheader.h (FT_DRIVER_H): New macro. (FT_AUTOHINTER_H, FT_CFF_DRIVER_H, FT_TRUETYPE_DRIVER_H, FT_PCF_DRIVER_H, FT_TYPE1_DRIVER_H): Make them aliases to FT_DRIVER_H. * include/freetype/ftautoh.h, include/freetype/ftcffdrv.h, include/freetype/ftpcfdrv.h, include/freetype/ftt1drv.h, include/freetype/ftttdrv.h: Replaced with... * include/freetype/ftdriver.h: ...this new file. (FT_CFF_HINTING_ADOBE, FT_T1_HINTING_ADOBE): Renamed to... (FT_HINTING_ADOBE): ... this new macro. (FT_CFF_HINTING_FREETYPE, FT_T1_HINTING_FREETYPE): Renamed to... (FT_HINTING_FREETYPE): ... this new macro. * src/*/*: Updated accordingly.
* Update or fix links to use the https protocol instead of http.Werner Lemberg2017-12-044-5/+5
|
* Update fuzzer-bot URL.Werner Lemberg2017-09-141-1/+5
|
* [psnames] Really fix issue #49949.Werner Lemberg2017-08-091-13/+13
| | | | | | | | | | | | | | | We now use a separate preprocessor macro to handle both definition and declaration of the glyph name arrays. * src/psnames/psmodule.c (DEFINE_PS_TABLE_DATA): New macro. * src/tools/glnames.py (StringTable::dump, StringTable::dump_sublist): Use `DEFINE_PS_TABLE_DATA'. (dump_encoding): Ditto. (main): Use `wb' mode for writing the output file, which works on Windows also. * src/psnames/pstables.h: Regenerated.
* [ftfuzzer] Fix clang warnings.Werner Lemberg2017-04-071-2/+2
| | | | | * src/tools/ftfuzzer/ftfuzzer.cc (LLVMFuzzerTestOneInput): Add casts.
* [ftfuzzer] Minor improvement.Werner Lemberg2017-03-181-1/+2
| | | | | * src/tools/ftfuzzer/ftfuzzer.cc: Don't set intermediate axis if bitmap strikes are active.
* [ftfuzzer] Limit number of tested faces and instances.Werner Lemberg2017-03-151-15/+48
| | | | | | | | | | This is inspired by the discussion in and analysis of https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=859 * src/tools/ftfuzzer/ftfuzzer.cc (LLVMFuzzerTestOneInput): Use only up to 20 face indices. Use only up to 20 instance indices.
* * src/tools/ftfuzzer/ftfuzzer.cc: Improve readability; formatting.Werner Lemberg2017-03-151-9/+16
|
* Typos.Alexei Podtelezhnikov2017-01-171-1/+1
|
* Update copyright year.Werner Lemberg2017-01-0414-15/+15
|
* Various fixes for clang's undefined behaviour sanitizer.Werner Lemberg2017-01-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * src/cff/cffload.c (FT_fdot14ToFixed): Fix casting. (cff_blend_doBlend): Don't left-shift negative numbers. Handle 5-byte numbers byte by byte to avoid alignment issues. * src/cff/cffparse.c (cff_parse): Handle 5-byte numbers byte by byte to avoid alignment issues. * src/cid/cidload (cid_read_subrs): Do nothing if we don't have any subrs. * src/psaux/t1decode.c (t1_decode_parse_charstring): Fix tracing. * src/tools/glnames.py (main): Put `DEFINE_PSTABLES' guard around definition of `ft_get_adobe_glyph_index'. * src/psnames/pstables.h: Regenerated. * src/psnames/psmodule.c: Inlude `pstables.h' twice to get both declaration and definition. * src/truetype/ttgxvar.c (FT_fdot14ToFixed, FT_intToFixed): Fix casting.
* [ftfuzzer] Replace `rand' with an xorshift algorithm.Werner Lemberg2016-12-301-5/+13
| | | | | * src/tools/ftfuzzer/ftfuzzer.cc: Don't include `stdlib.h'. (Random): Implement and use a 32bit `xorshift' algorithm.
* [ftfuzzer] Restrict number of tested bitmap strikes.Werner Lemberg2016-12-301-10/+66
| | | | | | | | | | | | | | | | Malformed fonts often have large values for the number of bitmap strikes, and FreeType doesn't check the validity of all bitmap strikes in advance. Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=353 * src/tools/ftfuzzer/ftfuzzer.cc: Include `stdlib.h' for `rand'. (Random): Small class to provide n randomly selected numbers (without repitition) out of the value set [0,N]. (LLVMFuzzerTestOneInput): Use it to test only up to 10 bitmap strikes.
* [psnames] Only declare, not define, data in `pstables.h' (#49949).Werner Lemberg2016-12-281-13/+64
| | | | | | | | | | | | | Pdfium includes `pstables.h' a second time; moving the definition from `pstables.h' to `psmodule.c' saves more than 60kByte data segment space for this case. * src/tools/glnames.py (StringTable::dump, StringTable::dump_sublist, dump_encoding, dump_array): Emit additional code to only define tables if `DEFINE_PS_TABLES' is set. * src/psnames/pstables.h: Regenerated. * src/psnames/psmodule.c (DEFINE_PS_TABLES): Define.
* Replace `++foo' and `--foo' with `foo++' and `foo--', resp.Werner Lemberg2016-12-261-8/+8
|
* Replace `foo == NULL' and `foo != NULL' with `!foo' and `foo', resp.Werner Lemberg2016-12-262-28/+28
| | | | Other minor formatting.
* [ftfuzzer] Always use Adobe CFF engine.Werner Lemberg2016-12-221-0/+8
| | | | | * src/tools/ftfuzzer/ftfuzzer.cc (FT_Global::FT_Global): Implement it.
* URL updates.Alexei Podtelezhnikov2016-10-131-1/+1
|
* [ftfuzzer] Speed up.Werner Lemberg2016-09-291-0/+4
| | | | | * src/tools/ftfuzzer/ftfuzzer.cc (LLVMFuzzerTestOneInput): Don't check for embedded bitmaps if we have a non-default instance.
* * src/tools/ftfuzzer/ftfuzzer.cc (LLVMFuzzerTestOneInput): Fix typo.Werner Lemberg2016-09-251-1/+1
|
* [ftfuzzer] Minor improvements.Werner Lemberg2016-09-091-2/+4
| | | | | | * src/tools/ftfuzzer/ftfuzzer.cc (LLVMFuzzerTestOneInput): Ignore invalid strikes. Use better values for call to `FT_Set_Char_Size'.
* [ftrandom] Minor improvements.Werner Lemberg2016-09-052-4/+8
| | | | | | | | | | | * src/tools/ftrandom/ftrandom.c (_XOPEN_SOURCE): New macro, set to 500. * src/tools/ftrandom/Makefile (CFLAGS): Split off include directories to ... (INCLUDES): ... this new variable. (LDFLAGS): New variable. (ftrandom.o, ftrandom): Updated.