| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Conflicts:
include/freetype/internal/tfm.h
|
| |
|
|
|
|
| |
* src/tfm/tfmobjs.c: Do it.
|
| |
|
|
|
|
| |
* src/tfm/tfmmod.c: Do it.
|
|
|
|
|
|
|
|
| |
* include/freetype/internal/tfm.h:
- Add TFM_FontInfoRec to accomodate TFM metric data.
- Define TFM_ParserRec to parse the metric data from
input `tfm' file.
- Define TFM_ServiceRec to provide functions to do it.
|
| |
|
|
|
|
| |
Note: Does not compile.
|
| |
|
|
|
|
|
| |
* src/vf/vflib.c: Add `vf_dv_stack' utility
functions and `vf_read_info' function.
|
| |
|
| |
|
|
|
|
| |
* src/vf/vflib.c: Do it.
|
|
|
|
| |
* src/vf/vfdrivr.c: Do it.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* src/vf/vf.h: Add opcodes used for vf driver.
|
| |
|
| |
|
|
|
|
|
| |
* src/pk/pklib.c (pk_load_font): Add check for
`PK_ID' and `PK_PRE' command in the font file.
|
| |
|
|
|
|
|
| |
* src/pk/pkdrivr.c: Define all the `pk_driver_class'
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.
|
|
|
|
|
|
| |
* src/pk/pkdrivr.h: Define PK_Bitmap and PK_Glyph
structures to hold `pk' format specific values and
define PK_FaceRec to accomodate them.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* src/base/ftcolor.c (FT_Palette_Set_Foreground_Color)
[!TT_CONFIG_OPTION_COLOR_LAYERS]: Add return value.
|
|
|
|
| |
* src/sfnt/ttcpal.c (tt_face_load_cpal): Implement it.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
| |
Suggested by Behdad.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
Reported by Behdad.
|
|
|
|
| |
(FT_Vector_Rotate): Simplify.
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9070
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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'.
|
|
|
|
|
|
|
| |
Reported by Behdad.
* src/base/ftcolor.c (FT_Palette_Data_Get)
[!TT_CONFIG_OPTION_COLOR_LAYERS]: s/apalette/apalette_data/.
|
|
|
|
|
| |
* include/freetype/ftcolor.h, include/freetype/internal/sfnt.h,
src/sfnt/ttcolr.c: Do it.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|