Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

AOSC-Archive/fontconfig

 
 

Repository files navigation

fontconfig (AOSC)

Experimental Fontconfig branch with Michal Srb's optimisation work. Merged to the latest FC.

Rebasing and tagging

git remote add upstream https://gitlab.freedesktop.org/fontconfig/fontconfig
# if doing a minor-version update OR preparing for upstreaming:
git pull --rebase upstream master
# if doing a patch-version update:
git pull upstream VER

Do note that the indentation rule is:

  • indent with four spaces, but tabstop = 8
  • use tabs for indents when possible to reduce filesize; pad the rest with spaces

Picking patches

If you are preparing to upstream the patch, you may want to squash together some commits. They are identified by headings below to account for changes in hashes in future rebases:

  • FcCompareValueList strong/weak:
    • Refactor FcCompareValueList to take value_strong and value_weak
    • Split strong/weak score debug in FcCompareValueList
  • FcFontSetMatchInternal:
    • Optimize FcFontSetMatchInternal
    • Bring back FC_DBG_MATCH2 from pre-optimized ver
    • Correct score selection in FcFontSetMatchInternal
    • (optional) Add debug info to FcFontSetMatchInternal
  • Preprocessing:
    • Introduce framework for preprocessing values.
    • Add FcPreprocessFOO speeding up FcCompareFOO.
  • Hot path:
    • Use (un)likely hints to optimize hot paths.
    • Mark out some hot paths in FcCompareValueList

For a note on what is probably worth merging, see this upstream comment.

About

Experimental Fontconfig branch with Michal Srb's optimisation work.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 84.7%
  • M4 7.3%
  • Makefile 5.2%
  • Shell 2.6%
  • Roff 0.2%