summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix monochrome crashgsoc-anurag-2022Anurag Thakur2022-10-191-0/+9
|
* Optimize DivisionAnurag Thakur2022-10-191-9/+27
|
* Add fontdue optimizationAnurag Thakur2022-10-191-0/+46
|
* SIMD with Fixed-PointAnurag Thakur2022-10-172-33/+58
|
* Add comments to raster algorithm and cleanupAnurag Thakur2022-10-111-56/+36
|
* Fixed point working nowAnurag Thakur2022-10-091-5/+5
|
* Fixed first passAnurag Thakur2022-10-062-39/+82
|
* lkwAnurag Thakur2022-10-062-63/+90
|
* Add SIMDAnurag Thakur2022-10-043-18/+39
|
* Almost fix renderingAnurag Thakur2022-10-041-9/+15
|
* Remove redundant codeAnurag Thakur2022-10-043-55/+12
|
* Invert bitmap pitchAnurag Thakur2022-10-041-19/+5
|
* Free memory after useAnurag Thakur2022-10-041-0/+1
|
* Fix antialiasingAnurag Thakur2022-10-042-21/+20
|
* Rebase and cleanupAnurag Thakur2022-10-041-17/+0
|
* Insert newline at endAnurag Thakur2022-10-043-3/+3
|
* Revert unrelated changesAnurag Thakur2022-10-042-12/+3
|
* Use inbuilt data-typesAnurag Thakur2022-10-044-250/+138
|
* Fix quadratic renderingAnurag Thakur2022-10-041-92/+97
|
* Partially move parameters to existing typesAnurag Thakur2022-10-042-70/+79
|
* Temp fix for upside-down bitmapAnurag Thakur2022-10-042-1/+19
|
* Logging for testingAnurag Thakur2022-10-042-0/+2
|
* Added commentaryAnurag Thakur2022-10-042-36/+60
|
* Added cmake buildAnurag Thakur2022-10-043-1/+4
|
* Remove printfsAnurag Thakur2022-10-043-35/+34
|
* Integration prototype successfulAnurag Thakur2022-10-047-59/+111
|
* Trying to get it to work attempt #1Anurag Thakur2022-10-043-35/+51
|
* Compilation fix attempt #1Anurag Thakur2022-10-047-5/+113
|
* Finish importing code, integration pendingAnurag Thakur2022-10-045-451/+94
|
* Added thingsAnurag Thakur2022-10-045-1/+1193
|
* Populate errors header for 'dense' rendererAnurag Thakur2022-10-041-1/+10
|
* Add files for new 'dense' moduleAnurag Thakur2022-10-049-4/+40
|
* * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Avoid `FT_Set_Charmap`. Alexei Podtelezhnikov2022-10-031-8/+6
| | | | | Set charmap aggressively without all validations of `FT_Set_Charmap` because we take it from the available array and only temporarily. Even CMap Format 14 will gracefully return 0.
* * src/cache/ftcbasic.c (ftc_basic_family_get_count): Remove redundancy.Alexei Podtelezhnikov2022-10-031-2/+1
|
* * src/psaux/pshints.c (cf2_hintmap_insertHint): Fix midpoint computation.Werner Lemberg2022-09-301-2/+4
| | | | | | | Replace '(start + end) / 2' with 'start + (end - start) / 2' to avoid overflow. Fixes #1180.
* * src/psaux/pshints.c (cf2_hintmap_build): Improve debugging output.Werner Lemberg2022-09-301-3/+3
|
* [truetype] Fix undefined pointer arithmetic.mlugg2022-09-291-4/+5
| | | | | * src/truetype/ttgxvar.c (tt_var_get_item_delta, ft_var_load_mvar): Use `FT_OFFSET`.
* * src/sfnt/ttsbit.c (tt_face_load_strike_metrics): Use lighter FT_DivFix.Alexei Podtelezhnikov2022-09-291-4/+2
|
* [base] FT_Attach_Stream: Make `parameters` argument constant.Ali Chraghi2022-09-292-4/+4
|
* * src/tools/*.py: Migrate to Python 3.Azamat Hackimov2022-09-283-808/+805
| | | | Fixes #1185, closes !205. Formatting changes according to PEP8.
* [sfnt] Guard access in 'COLR' table when requesting child table pointer.Dominik Röttsches2022-09-271-5/+13
| | | | | | | | | | | * src/sfnt/ttcolr.c (tt_face_get_colorline_stops, read_paint): Tighten pointer bounds checks. (get_child_table_pointer): Check whether incoming pointer `p` lies within the 'COLR' table. Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=51816
* [sfnt] Add SVG document bounds checking.Ben Wagner2022-09-271-36/+45
| | | | | | | | | | | | | | | | | Add a check that the document content is actually contained within the `SVG ` table. Without this check a malformed font may claim arbitrary memory as its document content. * src/sfnt/ttsvg.c (tt_face_load_svg): Take `numEntries` into account when testing 'documentRecord' extents. (find_doc): Rename `stream` to `document_records` for clarity. (tt_face_load_svg_doc): Split `doc` from `doc_list` pointer for clarity. Test that the document content is contained within the table. Ensure minimum length of document before testing for gzip format. Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=51812
* [base] Clean up the bitmap flow control.Alexei Podtelezhnikov2022-09-221-20/+20
| | | | | | | * src/base/ftbitmap.c (FT_Bitmap_Copy): Flip the copy if its pitch is trully opposite, zero is not a positive value. (FT_Bitmap_Convert): Set negative pitch as needed, accept negative alignment values.
* [base] Discard and recreate bitmaps for copying and converting. Alexei Podtelezhnikov2022-09-221-49/+17
| | | | | | | | Reusing target bitmaps for copying and converting is permitted. It is, however, pointless to preserve their content before overwriting. Free- malloc might be faster than realloc. * src/base/ftbitmap.c (FT_Bitmap_Copy, FT_Bitmap_Convert): Free an old buffer and create a new one.
* Reject 'COLR' table if version is 1 but header too small.Dominik Röttsches2022-09-161-3/+13
| | | | | | | | | * src/sfnt/ttcolr.c (tt_face_load_colr): If the version is determined to be 1, then the table size has to be at least the size of the v1 header. Also, for peeking the number of base glyphs and entries in the layer list, ensure that the table is sufficiently long. Fixes #1179. Original patch by Sergey Temnikov.
* * src/otvalid/otvgsub.c (otv_SingleSubst_validate): Fix format 1 handling.Werner Lemberg2022-09-151-5/+15
| | | | Fixes #1181.
* [truetype] Reject 'fvar' loading when `num_instances` is too small.Dominik Röttsches2022-09-061-5/+16
| | | | | | | | | | * src/truetype/ttgxvar.c (TT_Get_MM_Var): Reject retrieving master when 'fvar' values locally do not match with sanitized values from initialization at `sfnt_init_face` time. Reported as https://bugs.chromium.org/p/chromium/issues/detail?id=1360295
* [sfnt] Handle variable `COLR` v1 fonts without delta set index mapDominik Röttsches2022-09-051-3/+2
| | | | | | | | Fixes #1178. * src/sfnt/ttcolr.c (get_deltas_for_var_index_base): Set outer index to 0 and inner index to the delta index when retrieving deltas if the `COLR` table has no delta set index map.
* [sfnt] Pointer sanity checks before reading layer info in 'COLR' v0Dominik Röttsches2022-09-051-1/+3
| | | | | | | | | * src/sfnt/ttcolr.c (tt_face_get_colr_layer): Check that the pointer to read from is within the 'COLR' table. Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50633
* [autofit] Minor fix.Werner Lemberg2022-09-051-1/+1
| | | | | * src/autofit/afglobal.c (af_face_globals_compute_style_coverage): Avoid compiler warning.