Skip to content

Still missing meta table, dlng and slng #270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
wyuenho opened this issue Jul 28, 2020 · 2 comments
Open
3 tasks done

Still missing meta table, dlng and slng #270

wyuenho opened this issue Jul 28, 2020 · 2 comments

Comments

@wyuenho
Copy link

wyuenho commented Jul 28, 2020

Prerequisites

  • If you are reporting an issue that affects glyphs for characters for a particular region or regions, did you verify that the characters are within the supported scope of the region or regions? This generally means GB 18030 or Tōngyòng Guīfàn Hànzìbiǎo (通用规范汉字表) for China, Big Five or CNS 11643 Planes 1 & 2 for Taiwan, HKSCS-2016 for Hong Kong, JIS X 0208, JIS X 0212, and JIS X 0213 for Japan, and KS X 1001 and KS X 1002 for Korea.
  • Did you thoroughly search the open and closed issues to avoid reporting a duplicate issue?
  • Did you go through the official font readme file to better understand the scope of the project, to include the Known Issues section at the very end?

Description

As reported by #193 and #181, none of the Noto and Source Han Sans CJK fonts has a dlng entry in the dataMap in the meta table as described here. This value is very useful to programmatically determine the script and language each font is most suitable for what language without having to encode Noto and Source Sans Han specific routines into the code base. Every other CJK font on the market has this entry. Most fonts have this unless it's a pan-unicode font.

This issue was claimed to be fixed in version 2, but 2.001 still doesn't have a meta table that contains these entries.

@wyuenho wyuenho changed the title None of the Noto CJK fonts has a dlng entry in the dataMap in the meta table as [described](https://docs.microsoft.com/en-us/typography/opentype/spec/meta) here. This value is very useful to programmatically determine the script and language each font is most suitable for what language without having to encode Noto specific routines into the code base. Every other CJK font on the market has this entry. Most fonts have this unless it's a pan-unicode font. Please fix this. Still missing meta table, dlng and slng Jul 28, 2020
@punchcutter
Copy link
Member

Sorry for the delay. This hasn't been forgotten, but didn't make it into the last release. Currently the plan is to get this into the next release.

@verdy-p
Copy link

verdy-p commented Jun 3, 2024

All "Noto [Serif/Sans] [TC/SC/JP/KR]" fonts (in all their 7 weights) have forgotten to include [dlng]/[slng] OpenType metadata.

As result, none of these fonts can be used in modern web browsers based on Chromium (including Google Chrome and MS Edge) and applications using web engines (with HTML+CSS) for their UI display. The [dlng]/[slng] metadata is now used isntead of the old (broken and very slow) font selection mechanisms based on parsing the character-to-glyph mappings, or older OS/2 metatables.

Any "Noto" font without [dlng]/[slng] are no longer usable on the web. Instead text renderers of web engines will try to use fallback fonts, and if there's none matching, will display "tofu".... That's clearly not what the "Noto" family was designed for when they wanted to avoid this situation. Those broken Noto fonts are only usable in rich-text documents or standalone applications that select a single explicit static font name and style, and not depending on dynamic font selection.

Please add the "[dlng]/[slng]" OpenType small metadata where it is missing in ALL Noto fonts. This is required now in modern web browsers and applications using web rendering engines. This omission is currently not checked in Google font test suites (that are still only testing the presence of legacy "OS/2" tables and similar bitmap metadata, no longer used by modern text rendering/shaping engines of modern browsers to select relevant fonts).

All CJK fonts installed by default on Windows have this metadata, e.g. "Simsun", "Simsun-ExtA", "Simsun-ExtB"... These fonts are working in modern web browsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants