[Fontconfig] Another proposal for saving custom fonts in fontconfig

Peng Wu peng.e.wu at gmail.com
Thu Jul 4 09:17:26 UTC 2019


Sorry, I mean "fontfeatures" and "fontvariations" properties.

This example is only to demonstrate how to use this API proposal.

Thanks,
  Peng


On Thu, 2019-07-04 at 16:12 +0800, Peng Wu wrote:
> Hi,
> 
>   Based on suggestions from Akira TAGOH, I propose another API
> for this purpose.
> 
>   Take an example which we plan to override "fontfeatures" and
> "fontfeatures" properties:
> 
> customfont = FcDirCacheBeginCustomFont(config, file, index,
> stylename);
>   FcCustomFontModifyString(customfont, FC_FONT_FEATURES, features);
>   FcCustomFontModifyString(customfont, FC_FONT_VARIATIONS,
> variations);
> FcDirCacheEndCustomFont(customfont);
> 
> Thanks,
>   Peng
> 



More information about the Fontconfig mailing list