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

Bug#971830: fonts-jetbrains-mono: please advertise which scripts are covered



Quoting Romain Porte (2020-11-18 23:59:02)
> Hi Jonas,
> 
> 2020-10-12 22:35 CEST, Jonas Smedegaard:
> > Totally untested, it should look something like the following 
> > rewritten to instead use short-form dh sequencer:
> >
> > override_dh_dh_gencontrol:
> >       printf fonts:familylist= \
> >               >> debian/fonts-jetbrains-mono.substvars
> >       otfinfo -a $(wildcard src/*.ttf) | cut -d: -f2 \
> >               | LC_ALL=C sort -u \
> >               | $$(substvars-list-encode) \
> >               >> debian/fonts-jetbrains-mono.substvars
> >       dh_gencontrol -- -Vfonts:scriptcount="$(fonts-scriptcount)"
> 
> So, I took way too much time on this and the result is deceiving.
> 
> The -a option of otfinfo will print the name of the fonts, which is 
> not I guess what you wanted to get.

Sorry, my mistake.


> The attached patch can be applied on the new version 2.210-1 that 
> should be available on mentors.debian.net soon.
> 
> This patch produces the following result:
> 
>  Description: free and open-source typeface for developers
>   JetBrains Mono. A typeface for developers.
>   Features include:
>    - Increased height for a better reading experience
>    - Adapted to reading code
>    - 138 code-specific ligatures
>    - 145 languages
>    - 4 weights with matching italics
>   List of supported scripts:
>    - Default
>    - Latin
>    - Latin/Azeri
>    - Latin/Catalan
>    - Latin/Crimean
>    - Latin/Kazakh
>    - Latin/Moldavian
>    - Latin/Romanian
>    - Latin/Tatar
>    - Latin/Turkish
> 
> But I�am quite dissapointed by it, because I�think this information 
> makes little sense compaired to upstream supporting 145 languages (why 
> are there only a few listed?), and it is bugged because Cyrillic or 
> Greek are not listed, while they are supported by this version.
> 
> Maybe otfinfo is wrong, maybe it is something else, but I do not think 
> I will pursue to work on this bug. Listing all of the supported 
> languages in the long description would not make sense.

Languages and scripts are not the same - e.g. my mother tongue, danish, 
uses the latin script, as does vietnamese: 
https://en.wikipedia.org/wiki/List_of_Latin-script_alphabets

When the font author counts _languages_ covered then indeed that is a 
larger number than that for scripts, because more than one language 
require only ASCII coverage of the latin script for full mapping.

Checking language coverage is more difficult, as it requires inspecting 
not only metadata of script names declared, but also the coverage for 
each script and aligning that with mappings for each language - e.g. for 
danish if the non-ASCII glyphs ae o-slash aa Ae O-slash Aa are covered 
(and if they actually display something reasonably representing æ ø å Æ 
Ø Å as they are supposed to - not misplace o-slash with french oe or as 
some 90's crappy Truetype fonts did just repeat a o a A O A).

There must be code out there to automate the task of inspecting language 
coverage, but I have not yet found anything useful to package for 
Debian.  That would be nice, and I would certainly use it for package 
description of Noto fonts.

I sure hope you had fun diving into this - and that I did not mislead 
you when suggesting to explore this.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature


Reply to: