Re: Another proposal for saving custom fonts in fontconfig

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

 



On Wed, Jul 3, 2019 at 4:53 PM Peng Wu <peng.e.wu@xxxxxxxxx> wrote:
>
> 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.

Who decide that "if"? I don't understand why you want to make it more specific.

>
>   Feel free to comment it.
>
> Thanks,
>   Peng
>


-- 
Akira TAGOH
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/fontconfig




[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux