freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][gsoc-anurag-2022] 37 commits: * src/pfr/*.c: Tr


From: Anurag Thakur (@AdbhutDev)
Subject: [Git][freetype/freetype][gsoc-anurag-2022] 37 commits: * src/pfr/*.c: Trivial improvements and formatting.
Date: Thu, 11 Aug 2022 08:28:42 +0000

Anurag Thakur pushed to branch gsoc-anurag-2022 at FreeType / FreeType

Commits:

  • 1f005c09
    by Werner Lemberg at 2022-07-26T16:22:27+02:00
    * src/pfr/*.c: Trivial improvements and formatting.
    
  • 182295cb
    by Werner Lemberg at 2022-07-26T16:50:19+02:00
    [pfr] Add some safety guards.
    
    * src/pfr/pfrload.c (pfr_phy_font_load): Check resolutions and number of
    characters.
    
    Fixes #1174.
    
  • 284956b5
    by Alexei Podtelezhnikov at 2022-07-26T12:23:15-04:00
    [pfr] Fortify the kerning code.
    
    Any array index must be strictly less then the array size. Therefore,
    we must reject indexes that are equal to the array size.  Alternatively,
    we should move the bounds check before the index decrement but that
    would be confusing.
    
    In addition, it is ok to decrement zero (.notdef) and get UINT_MAX,
    which is then automatically rejected in the bounds check.
    
    * src/pfr/pfrobjs.c (pfr_face_get_kerning): Fix the bounds checking.
    
  • 38dc768a
    by Werner Lemberg at 2022-07-29T21:53:28+02:00
    Fix clang14 compiler warnings.
    
    * include/freetype/internal/ftstream.h (FT_GET_SHORT_LE, FT_GET_USHORT_LE):
    Fix type.
    
    * src/sfnt/ttcolr.c (get_deltas_for_var_index_base): Always return boolean
    value.
    (tt_face_get_colorline_stops): Fix type of `var_index_base`.
    
  • a3749a64
    by Werner Lemberg at 2022-07-29T22:21:12+02:00
    Fix compilation if `TT_CONFIG_OPTION_GX_VAR_SUPPORT` is not set.
    
    * src/sfnt/ttcolr.c: Protect relevant code with
    `TT_CONFIG_OPTION_GX_VAR_SUPPORT`.
    
  • 2af6903b
    by Werner Lemberg at 2022-07-29T22:57:18+02:00
    * src/base/ftglyph.c (FT_Get_Glyph): Set `*aglyph` to NULL in case of error.
    
  • fd02c369
    by Alexei Podtelezhnikov at 2022-07-29T22:54:38-04:00
    * src/autofit/afhints.h: Remove dead code.
    
  • ee72e285
    by Alexei Podtelezhnikov at 2022-07-29T22:55:28-04:00
    [autofit] Use unsigned accounting for hints.
    
    * src/autofit/afhints.h (AF_AxisHintsRec): Use unsigned types.
    
    * src/autofit/afhints.c (af_axis_hints_new_{segment,edge},
    af_glyph_hints_get_num_segments, af_glyph_hints_get_segment_offset):
    Updated accordingly.
    * src/autofit/aflatin.c (af_cjk_hints_compute_edges): Ditto.
    * src/autofit/afcjk.c (af_cjk_hints_compute_edges): Ditto.
    
  • 649352ab
    by Dominik Röttsches at 2022-07-30T15:10:17+02:00
    [sfnt] Fix typo in clip box computation.
    
    * src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Use appropriate
    scale factor for `yMin` and `yMax`.
    
  • 919561ca
    by Dominik Röttsches at 2022-07-30T15:24:58+02:00
    [sfnt] Implement VarClipBox.
    
    * src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Depending on the
    format, read `var_index_base`, then retrieve and apply scaled deltas.
    
  • 9de432f7
    by Alexei Podtelezhnikov at 2022-07-31T22:13:34-04:00
    [psaux] Remove unused structure field.
    
    * include/freetype/internal/psaux.h (PS_TableRec): Remove `num_elems`.
    * src/psaux/psobjs.c (ps_table_new): Remoove its initialization.
    
  • 4f195185
    by Alexei Podtelezhnikov at 2022-08-01T09:52:43-04:00
    [autofit] Updated to reduce casting.
    
    * src/autofit/afglobal.h (AF_FaceGlobalsRec): Change `glyph_count` type.
    * src/autofit/afglobal.c (af_face_globals_compute_style_coverage,
    af_face_globals_get_metrics, af_face_globals_is_digit,
    af_face_globals_new): Changed local types and updated accordingly.
    * src/autofit/aflatin.c (af_latin_metrics_init_blues): Ditto.
    
  • a18ad83e
    by Alexei Podtelezhnikov at 2022-08-01T13:20:13-04:00
    [autofit] Updated to reduce casting (cont'd).
    
    * src/autofit/afmodule.h (AF_ModuleRec): Change `default_script` type.
    * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
    Remove casting.
    * src/autofit/afmodule.c (af_property_{set,get}): Updated accordingly.
    
  • 039b9071
    by Alexei Podtelezhnikov at 2022-08-01T20:19:12-04:00
    [cache] Remove some casts, clean up tracing.
    
    * src/cache/ftcbasic.c (FTC_ImageCache_Lookup, FTC_SBitCache_Lookup):
    Clean up tracing types.
    * src/cache/ftccache.c (ftc_node_destroy): Ditto.
    * src/cache/ftcmanag.c (FTC_Manager_Check): Ditto.
    (FTC_Manager_Check, FTC_Node_Unref): Remove a cast.
    * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Ditto.
    
  • 480be443
    by Alexei Podtelezhnikov at 2022-08-01T22:59:58-04:00
    * src/base/ftobjs.c (Mac_Read_sfnt_Resource): Reduce casting.
    
  • d53c1141
    by Alexei Podtelezhnikov at 2022-08-02T12:57:39+00:00
    * src/psaux/psobjs.c (ps_table_release): Remove redundant casting. 
  • dcb5fc5b
    by Alexei Podtelezhnikov at 2022-08-02T17:10:25+00:00
    * src/sfnt/ttload.c: Trace formatting updates.
  • 90e1e39f
    by @udoudou at 2022-08-03T22:54:38-04:00
    * src/cache/ftcmanag.c (FTC_Manager_New): Initialize `cur_weight`.
    
    See !192.
    
  • 7cd3f19f
    by Tim-Philipp Müller at 2022-08-06T11:52:32+00:00
    ci: bump windows image and use newer runner and vs2019
    
    The old 1809 runner will be decommissioned at some point.
    
  • b44c0f59
    by Anurag Thakur at 2022-08-11T13:54:37+05:30
    Add files for new 'dense' module
    
  • 16dbe79b
    by Anurag Thakur at 2022-08-11T13:54:37+05:30
    Populate errors header for 'dense' renderer
    
  • 00b11706
    by Anurag Thakur at 2022-08-11T13:54:37+05:30
    Added things
    
  • 38021347
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Finish importing code, integration pending
    
  • be3d4b4d
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Compilation fix attempt #1
    
  • 63ed4b6a
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Trying to get it to work attempt #1
    
  • fd1b4310
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Integration prototype successful
    
  • 89572e39
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Remove printfs
    
  • 7b2ed7c8
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Added cmake build
    
  • 1222260d
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Added commentary
    
  • 4509f4f0
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Logging for testing
    
  • 3b233936
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Temp fix for upside-down bitmap
    
  • 5d7cfcce
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Partially move parameters to existing types
    
  • 910e8e35
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Fix quadratic rendering
    
  • 211a5ae9
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Use inbuilt data-types
    
  • e4ee4069
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Revert unrelated changes
    
  • be65cf2e
    by Anurag Thakur at 2022-08-11T13:54:38+05:30
    Insert newline at end
    
  • e841ed83
    by Anurag Thakur at 2022-08-11T13:56:56+05:30
    Rebase and cleanup
    

30 changed files:

The diff was not included because it is too large.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]