[libreoffice-design] Re: Offering fonts relevant to the user's chosen language - following UX/design meeting 2024-Sep-25

Caolán McNamara caolan.mcnamara at collabora.com
Thu Sep 26 20:40:03 UTC 2024


On Thu, 2024-09-26 at 22:11 +0300, Eyal Rozenberg wrote:
> ... At least when it comes to specifying fonts, Microsoft has moved
> beyond this trichotomy. They have multi-language font-spec elements,
> e.g.:
> 
> <a:minorFont>
>    <a:latin typeface="Calibri" panose="020F0502020204030204"/>
>    <a:ea typeface=""/>
>    <a:font script="Jpan" typeface="游明朝"/>
>    <a:font script="Hang" typeface="맑은 고딕"/>
>    <a:font script="Arab" typeface="Arial"/>
>    ... etc. more a:font's here
>    <a:font script="Talu" typeface="Microsoft New Tai Lue"/>
>    <a:font script="Tfng" typeface="Ebrima"/>
> </a:minorFont>

Ah, ISO 15924 script codes: https://en.wikipedia.org/wiki/ISO_15924 (we
have some bodge-work around those in getExemplarLanguageForUScriptCode
for example and elsewhere, e.g. Zsye for emojis

>  > FWIW with fontconfig, you can see its estimate of language cover
> 
> And does fontconfig compute these estimates once and store them in
> its meta-data, or is it something it does dynamically?

Not sure, presumably it's typically cached via fc-cache and dynamically
extracted if that's not available or up to date.

> 
> ... Hmm. Looking at:
> 
> > $ fc-list -v "David Libre"
> > ...
> > lang: ... |ha|he|ho| ...
> 
> Actually,
> it's...aa|ast|ay|bm|bi|bin|br|bs|ch|co|cy|da|de|en|es|et|eu|fi|fj|fo|
> fr|ff|fur|fy|ga|gd|gl|gn|gv|ha|he|ho|hr|hu|ia|ig|id|ie|io|is|it|ki|kw
> |la|lb|ln|mg|mi|nb|nds|nl|nn|no|nr|nso|ny|oc|om|pt|rm|sl|sma|smj|smn|
> so|sq|ss|st|sv|sw|tl|tn|ts|uz|vi|vo|vot|wa|wen|wo|xh|yap|yi|yo|zu|an|
> fil|hsb|ht|jv|kj|kwm|lg|li|ms|na|ng|pap-an|pap-
> aw|rn|rw|sc|sg|sn|su|ty|za|agr|ayc|bem|lij|mfe|miq|mjw|nhn|niu|rif|tp
> i|unm|wae|yuw(s)

yeah, I just highlighted a diff around "he" between two arbitrary fonts
to show one without claimed he support and one with.


More information about the LibreOffice mailing list