[Fontconfig] Another proposal for saving custom fonts in fontconfig

Peng Wu peng.e.wu at gmail.com
Wed Jul 3 07:52:49 UTC 2019


Hi,

On Tue, 2019-07-02 at 18:12 +0900, Akira TAGOH wrote:
> No. I thought we agreed with not using blackboxed parameters in
> private discussions. that API potentially expects to override
> everything with FcPattern which isn't desired at this point. if you
> want to override a property other than FC_FONT_VARIATIONS, it should
> be "const FcChar8 *object, const FcChar8 *value" instead of
> "FcPattern *custom".

  Okay, I just think this is one possible API proposal candidate,
just note it here.

  From current requirements, maybe only font variations and features
are planed to be overridden.

  Here are another proposal for FcDirCacheAddStyle.

FcDirCacheAddStyle (const FcConfig *config, const FcChar8 *file,
const unsigned int index, const FcChar8 *stylename,
const FcChar8 *variations, const FcChar8 *features);

  If we don't plan to override other property in custom font style,
I think the above API is okay for me.

  Feel free to comment it.

Thanks,
  Peng



More information about the Fontconfig mailing list