[AppStream] Local font names in fonts metadata

Matthias Klumpp matthias at tenstral.net
Tue Oct 16 14:37:24 UTC 2018


Hello!
Sorry for the delayed reply, when the mail arrived I was at Debconf
Taiwan and afterwards it was buried under a large pile of other mail
and somehow wasn't flagged as important by my filter...

Am Fr., 29. Juni 2018 um 06:12 Uhr schrieb Changwoo Ryu <cwryu at debian.org>:
> Hello,
> On reading AppStream specification "Fonts" section,
>
> > You should add one or more children of type <font/> to make the
> > font's full-names known. The full-name should be the same as
> > given in the font file for the English language. If no
> > full-name is set, a space-separated combination of the font's
> > family and style is used instead. The font must have a family
> > defined to be included.
>
> It clearly states <font/> should be "full-names for the English
> language". But some fonts have local names and people usually specify
> those fonts using the local names. I think non-English names should be
> also added.

No, because the `<font/>` tag is actually a kind of API. It is used by
software to know which font faces are in the component, so that for
example an application can download missing fonts automatically and so
we can render sample texts for fonts easier.
For localization, the font component already has a localizable <name/>
as well as <description/>.

> For example, Korean fonts usually have multiple English and Korean
> names. Korean web pages often specify their CSS font-family in Korean
> font name. And if I write an ODF document specifying a Korean font in
> Korean locale, then the document has the Korean version of font family
> name, not English one.

Will only the Korean name be saved, or how is the font referenced, technically?
Having a font be referred to by two names in code would indeed by a
tricky issue to solve...

> In addition, I think "fullname" should not be preferred to "family".
>
> > $ fc-query  /usr/share/fonts/truetype/nanum/NanumGothicBold.ttf
> > Pattern has 23 elts (size 32)
> >     family: "나눔고딕"(s) "NanumGothic"(s)
> >     familylang: "ko"(s) "en"(s)
> >     style: "Bold"(s)
> >     stylelang: "ko"(s)
> >     fullname: "NanumGothicBold"(s)
> >     fullnamelang: "en"(s)
>
> Like the above, some fonts only have English "fullname" but multiple
> "family" names including local one.
>
> Opinions?

The `<font/>` tag should contain a name that software is able to refer
to, and usually refers to, in code. Maybe the specification wording
can be changed in that direction?
Since I am not an expert on fonts, I am open to suggestions and
explanations here.

Cheers,
    Matthias

-- 
I welcome VSRE emails. See http://vsre.info/


More information about the AppStream mailing list