Parth Wazurkar
30679ffae9
[vf] Add DVI interpreter functions.
6 years ago
Parth Wazurkar
7305227c8c
[vf] Add `vf' utility and `dvi' stack functions.
...
* src/vf/vflib.c: Add `vf_dv_stack' utility
functions and `vf_read_info' function.
6 years ago
Parth Wazurkar
b9b1f22afe
[vf] Minor.
6 years ago
Parth Wazurkar
51e77c8217
[vf] Modify makefiles.
6 years ago
Parth Wazurkar
35c6834a06
[vf] Add utility functions.
...
* src/vf/vflib.c: Do it.
6 years ago
Parth Wazurkar
6939265f77
[vf] Define `vf_cmap_class' functions.
...
* src/vf/vfdrivr.c: Do it.
7 years ago
Parth Wazurkar
540347496a
[vf] Define VF_FaceRec and other format specific structures.
...
* src/vf/vfdrivr.h: Define VF_Bitmap, VF, and TFM
and other structures to hold `vf' format specific
values and define VF_FaceRec to accomodate them.
7 years ago
Parth Wazurkar
1cffbb92e5
[vf] Add vf format opcodes.
...
* src/vf/vf.h: Add opcodes used for vf driver.
7 years ago
Parth Wazurkar
9fac20632d
[pk] Minor Fixes.
7 years ago
Parth Wazurkar
8bacbfc33e
[pk] Add pk services.
7 years ago
Parth Wazurkar
5f57c6a8e8
[pk] Improve error checking in font file.
...
* src/pk/pklib.c (pk_load_font): Add check for
`PK_ID' and `PK_PRE' command in the font file.
7 years ago
Parth Wazurkar
9678e0c902
[pk] Fixes.
7 years ago
Parth Wazurkar
86a901d198
[pk] Define `pk_driver_class' functions.
...
* src/pk/pkdrivr.c: Define all the `pk_driver_class'
functions.
7 years ago
Parth Wazurkar
ab86ec699d
[pk] Define `pk_cmap_class' functions.
7 years ago
Parth Wazurkar
21d3754b29
[pk] Define `pk' font loader functions.
...
* src/pk/pk.h: Add `pk' format specific opcodes.
* src/pk/pklib.c: Define `pk_font_load', `pk_free_font'
and other format specific utility functions.
7 years ago
Parth Wazurkar
d934e03cdd
[pk] Define PK_FaceRec and other format specific structures.
...
* src/pk/pkdrivr.h: Define PK_Bitmap and PK_Glyph
structures to hold `pk' format specific values and
define PK_FaceRec to accomodate them.
7 years ago
Parth Wazurkar
f9d1ea429b
[vf] Initialise vf driver files and Makefiles.
7 years ago
Parth Wazurkar
e67b502c14
[pk] Initialise pk driver files and Makefiles.
7 years ago
Parth Wazurkar
7399a4c280
[pk,vf] Initialise pk and vf driver repositories.
7 years ago
Werner Lemberg
b532d7ce70
Fix typo ( #54238 ).
...
* src/base/ftcolor.c (FT_Palette_Set_Foreground_Color)
[!TT_CONFIG_OPTION_COLOR_LAYERS]: Add return value.
7 years ago
Werner Lemberg
0767d5362f
Adjust table size comparisons ( #54242 ).
...
* src/sfnt/ttcpal.c (tt_face_load_cpal): Implement it.
7 years ago
Werner Lemberg
6ceeb87f5d
Fix more 32bit issues ( #54208 )
...
* src/cff/cffload.c (cff_blend_build_vector): Convert assertion into
run-time error.
* src/truetype/ttgxvar.c (ft_var_to_normalized): Protect against
numeric overflow.
7 years ago
Werner Lemberg
29f05fd02d
Fix 32bit build warnings ( #54239 ).
...
* src/base/ftbitmap.c (FT_Bitmap_Blend): Add casts to avoid signed
vs. unsigned comparisons.
* srb/sfnt/ttcolr.c (tt_face_get_colr_layer): Ditto.
7 years ago
Jeff Carey
d9d300ab6b
* src/psnames/psmodule.c (ps_unicodes_init): Fix alloc debugging.
7 years ago
Werner Lemberg
396051daee
s/xxx specific foo/xxx-specific foo/.
7 years ago
Werner Lemberg
7edc937fe6
s/palette_types/palette_flags/.
...
Suggested by Behdad.
7 years ago
Werner Lemberg
4e3b2473d8
Make `FT_Get_Color_Glyph_Layer' return FT_Bool.
...
* include/freetype/freetype.h, src/base/ftobjs.c
(FT_Get_Color_Glyph_Layer, FT_Render_Glyph_Internal): Updated.
* include/freetype/internal/sfnt.h (TT_Get_Colr_Layer_Func),
src/sfnt/ttcolr.h, src/sfnt/ttcolr.c (tt_face_get_colr_layer):
Updated.
7 years ago
Werner Lemberg
f6ccb524af
* src/base/ftobjs.c (FT_Get_Color_Glyph_Layer): Guard SFNT function.
...
Reported by Behdad.
7 years ago
Alexei Podtelezhnikov
1fc776b5f1
* src/base/fttrigon.c (FT_Tan): Improve accuracy.
...
(FT_Vector_Rotate): Simplify.
7 years ago
Alexei Podtelezhnikov
4f11209f5c
* src/base/ftobjs.c (FT_Set_Charmap): Robustify.
7 years ago
Werner Lemberg
207ca38fb5
[truetype] Fix memory leak.
...
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Add initializers.
Fix typo in `goto' destination.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9071
7 years ago
Werner Lemberg
589d1f0899
* src/truetype/ttgxvar.c (tt_face_vary_cvt): Add initializers.
...
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9070
7 years ago
Werner Lemberg
a632fb547e
[truetype] Increase precision while applying VF deltas.
...
It turned out that we incorrectly round CVT and glyph point deltas
before accumulation, leading to severe positioning errors if there
are many delta values to sum up.
Problem reported by Akiem Helmling <akiem@underware.nl> and analyzed
by Behdad.
* src/truetype/ttgxvar.c (ft_var_readpackeddelta): Return deltas in
16.16 format.
(tt_face_var_cvt): Collect deltas in `cvt_deltas', which is a 16.16
format array, and add the accumulated values to the CVT at the end
of the function.
(TT_Vary_Apply_Glyph_Deltas): Store data in `points_org' and
`points_out' in 16.16 format.
Collect deltas in `point_deltas_x' and `point_deltas_y', which are
16.16 format arrays, and add the accumulated values to the glyph
coordinates at the end of the function.
7 years ago
Werner Lemberg
cc3333902b
New base function `FT_Matrix_Check' ( #54019 ).
...
* src/base/ftcalc.c (FT_Matrix_Check): New base function to properly
reject degenerate font matrices.
* include/freetype/internal/ftcalc.h: Updated.
* src/cff/cffparse.c (cff_parse_font_matrix), src/cid/cidload.c
(cid_parse_font_matrix), src/type1/t1load.c (t1_parse_font_matrix),
src/type42/t42parse.c (t42_parse_font_matrix): Use
`FT_Matrix_Check'.
7 years ago
Werner Lemberg
d7393e22ee
Fix typo.
...
Reported by Behdad.
* src/base/ftcolor.c (FT_Palette_Data_Get)
[!TT_CONFIG_OPTION_COLOR_LAYERS]: s/apalette/apalette_data/.
7 years ago
Werner Lemberg
9027233f75
s/FT_PALETTE_USABLE_WITH_/FT_PALETTE_FOR_/.
...
* include/freetype/ftcolor.h, include/freetype/internal/sfnt.h,
src/sfnt/ttcolr.c: Do it.
7 years ago
Werner Lemberg
a6b77ba2b3
[sfnt] Fix CPAL heap buffer overflow.
...
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8968
* src/sfnt/ttcpal.c (tt_face_load_cpal): Guard CPAL version 1
offsets.
7 years ago
Werner Lemberg
7915fd51f1
Doh. Don't use CPAL or COLR data if tables are missing.
...
Reported by Alexei.
* src/sfnt/ttcolr.c (tt_face_get_colr_layer): Return immediately if
`colr' is NULL.
* src/sfnt/ttcpal.c (tt_face_palette_set): Return immediately, if
`cpal' is NULL.
7 years ago
Werner Lemberg
a56e4bf7a2
Oops!
7 years ago
Nikhil Ramakrishnan
779c8c4050
Some more minor doc fixes.
7 years ago
Werner Lemberg
95f7341d81
More minor doc fixes.
7 years ago
Werner Lemberg
ce8517b474
Minor documentation fixes.
7 years ago
Werner Lemberg
877d80944b
Introduce `@example:' subsections.
7 years ago
Werner Lemberg
fc40469a6f
Add example for `FT_Get_Color_Glyph_Layer'.
7 years ago
Alexei Podtelezhnikov
b1a3c59f8d
[base] Introduce `FT_New_Glyph'.
...
This function facilitates access to full capabilities of FreeType
rendering engine for custom glyphs. This can be quite useful for
consistent rendering of mathematical and chemical formulas, e.g.
https://bugs.chromium.org/p/chromium/issues/detail?id=757078
* include/freetype/ftglyph.h, src/base/ftglyph.c (FT_New_Glyph): New
function.
7 years ago
Nikhil Ramakrishnan
e13599a036
Change documentation markup tags to lowercase.
...
Implemented as per discussion in
http://lists.nongnu.org/archive/html/freetype-devel/2018-06/msg00073.html
No change in functionality, of course.
7 years ago
Werner Lemberg
d573a46f77
Typo.
7 years ago
Armin Hasitzka
0f6be06444
[bdf] Fix underflow of an unsigned value.
...
bdflib.c:1562 could be reached with `font->glyphs_used == 0'. That
caused an underflow of the unsigned value which results in undefined
behaviour.
* src/bdf/bdflib.c (src/bdf/bdflib.c): Bail out earlier than before
if the `ENCODING' keyword cannot be found.
7 years ago
Werner Lemberg
19d8687f0b
Fix documentation indentation; s/@const/@enum/; harmonize doc keywords.
7 years ago
Werner Lemberg
da84691914
[base] Add tracing for `FT_Bitmap_Blend'.
...
* include/freetype/internal/fttrace.h (trace_bitmap): New
enumeration.
* src/base/ftbitmap.c (FT_COMPONENT): Define.
(FT_Bitmap_Blend): Add `FT_TRACE5' calls.
7 years ago