djrrb / Bungee

A chromatic signage typeface for vertical and horizontal setting.
https://djr.com/bungee
SIL Open Font License 1.1
330 stars 42 forks source link

Reported Warns #110

Closed vv-monsalve closed 2 months ago

vv-monsalve commented 2 months ago

These are the Warns reported for the fonts at https://github.com/djrrb/Bungee/actions/runs/8844751830

Original proposal: legacy:check/029

vv-monsalve commented 2 months ago
⚠️ WARN Ensure fonts have ScriptLangTags declared on the 'meta' table.
> > The OpenType 'meta' table originated at Apple. Microsoft added it to OT with > just two DataMap records: > > - dlng: comma-separated ScriptLangTags that indicate which scripts, > or languages and scripts, with possible variants, the font is designed for. > > - slng: comma-separated ScriptLangTags that indicate which scripts, > or languages and scripts, with possible variants, the font supports. > > > The slng structure is intended to describe which languages and scripts the > font overall supports. For example, a Traditional Chinese font that also > contains Latin characters, can indicate Hant,Latn, showing that it supports > Hant, the Traditional Chinese variant of the Hani script, and it also > supports the Latn script. > > The dlng structure is far more interesting. A font may contain various glyphs, > but only a particular subset of the glyphs may be truly "leading" in the design, > while other glyphs may have been included for technical reasons. Such a > Traditional Chinese font could only list Hant there, showing that it’s designed > for Traditional Chinese, but the font would omit Latn, because the developers > don’t think the font is really recommended for purely Latin-script use. > > The tags used in the structures can comprise just script, or also language > and script. For example, if a font has Bulgarian Cyrillic alternates in the > locl feature for the cyrl BGR OT languagesystem, it could also indicate in > dlng explicitly that it supports bul-Cyrl. (Note that the scripts and languages > in meta use the ISO language and script codes, not the OpenType ones). > > This check ensures that the font has the meta table containing the > slng and dlng structures. > > All families in the Google Fonts collection should contain the 'meta' table. > Windows 10 already uses it when deciding on which fonts to fall back to. > The Google Fonts API and also other environments could use the data for > smarter filtering. Most importantly, those entries should be added > to the Noto fonts. > > In the font making process, some environments store this data in external > files already. But the meta table provides a convenient way to store this > inside the font file, so some tools may add the data, and unrelated tools > may read this data. This makes the solution much more portable and universal. > > Original proposal: https://github.com/fonttools/fontbakery/issues/3349 * ⚠️ **WARN**

This font file does not have a 'meta' table.

[code: lacks-meta-table]
vv-monsalve commented 2 months ago
⚠️ WARN Check mark characters are in GDEF mark glyph class.
> > Mark characters should be in the GDEF mark glyph class. > > Original proposal: https://github.com/fonttools/fontbakery/issues/2877 * ⚠️ **WARN**

The following mark characters could be in the GDEF mark glyph class: brevebelowcmb (U+032E), commaturnedabovecmb (U+0312), dieresisbelowcmb (U+0324), dotbelowcmb (U+0323), hookcmb (U+0309), horncmb (U+031B), macron (U+0304) and macronbelowcmb (U+0331)

[code: mark-chars]
vv-monsalve commented 2 months ago
⚠️ WARN Does the font contain a soft hyphen?
> > The 'Soft Hyphen' character (codepoint 0x00AD) is used to mark > a hyphenation possibility within a word in the absence of or > overriding dictionary hyphenation. > > It is sometimes designed empty with no width (such as a control character), > sometimes the same as the traditional hyphen, sometimes double encoded with > the hyphen. > > That being said, it is recommended to not include it in the font at all, > because discretionary hyphenation should be handled at the level of the > shaping engine, not the font. Also, even if present, the software would > not display that character. > > More discussion at: > https://typedrawers.com/discussion/2046/special-dash-things-softhyphen-horizontalbar > > Original proposal: https://github.com/fonttools/fontbakery/issues/4046 > See also: https://github.com/fonttools/fontbakery/issues/3486 * ⚠️ **WARN**

This font has a 'Soft Hyphen' character.

[code: softhyphen]
justvanrossum commented 2 months ago

Thanks! Can you advice how to determine the appropriate language tags for the meta table?

vv-monsalve commented 2 months ago

We are currently adding the script information by default, Latn in this case. Now, if the font design includes any special locl for a specific language need, it should be specified in the dlang.

  <meta>
    <text tag="dlng">
      Latn
    </text>
    <text tag="slng">
      Latn
    </text>
  </meta>
vv-monsalve commented 2 months ago

In the ufo files, this goes in the lib.plist

    <key>public.openTypeMeta</key>
    <dict>
      <key>dlng</key>
      <array>
        <string>Latn</string>
      </array>
      <key>slng</key>
      <array>
        <string>Latn</string>
      </array>
    </dict>
justvanrossum commented 2 months ago

Thanks! Added in https://github.com/djrrb/Bungee/pull/111/commits/8b2f2481d0a1e2e5c07f8683a29705ac8e8369b8

justvanrossum commented 2 months ago

I've merged the fixes. Let me know if there's anything else, or if you think it's time to tag a release.

vv-monsalve commented 2 months ago

Please ensure all of the above is applied to all the fonts (I've only seen Bungee Regular in the PR). Then I'll need to run a last QA round before PR to GF time :)

vv-monsalve commented 1 month ago

or if you think it's time to tag a release.

Hi @justvanrossum, could you please confirm if you have applied the above changes to all the fonts? Now would be the time to tag the v2.000 release and proceed with the update.

The longer we wait, the more FB is updated, and new Fails could be received from there ':-)

justvanrossum commented 1 month ago

All cupcakes here! I'll tag a release.

vv-monsalve commented 1 month ago

Excellent! 🥳

Should we add you as a designer, Just? (In the credits of the About section of the Specimen page in GF)

justvanrossum commented 1 month ago

Should we add you as a designer, Just?

Thank you, but no, unless there is a possibility for an engineering credit. In that case Marte Verhaegen should also be mentioned.

vv-monsalve commented 1 week ago

Revisiting this Issue I noticed I didn't answer the above. No, there is no way to specify that credit, unless written as part of the Description of the font, in the About section of the Specimen page.