question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

com_google_fonts_check_074: Why must name ID 0 (copyright) be ASCII only?

See original GitHub issue

In the Ms name table spec, https://docs.microsoft.com/en-gb/typography/opentype/spec/name#enc1 I see no mention of nameID 0 needing to be ASCII.

Imo, there’s nothing wrong with having genuine copyright, tm and registered symbols. As long as the characters are within the Mac Roman encoding, https://en.wikipedia.org/wiki/Mac_OS_Roman for Mac entries and the BMP plane for Win entries, I don’t think we’re violating anything.

The reason I’m bringing this up is because Plex has the following copyright.

© 2017 IBM Corp. All rights reserved.

Am I missing something?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
readrobertscommented, Feb 21, 2018

When CFF data is present as a CFF table in an OpenType font, there is a bunch of CFF data which is not relevant, and should be ignored in favor of the equivalent data in other tables - see the differences between the CFF2 and CFF table definitions. The CFF Copyright should be ignored, and certainly can be different than name table ID 1 - Adobe uses ‘@’ in name id 0, but not in the CFF Copyright string. The specification of the encoding of a copyright string in CFF is indeed poorly specified. The PostScript Language Reference Manual says that the ‘Notice’ field is a ‘string’ type, and then in section 3.3.7, says the encoding is unspecified and is whatever you want - the only limitation stated is that to enhance portability for strings that are present literally in the data, is charset can be limited to ASCII, but I haven’t seen a tool that will reject a font for any encoding in the ‘string’ fields. I now recommend omitting the Notice or Copyright field from the CFF table.

1reaction
anthrotypecommented, Feb 21, 2018

I’m not sure we’ll ever release type 1 fonts

of course not. I mentioned Type1 because the CFF spec refers to that for the meaning of those TopDict operators. The text encoding is still unclear, but ascii is indeed the safest bet for CFF strings. What you’re mostly interested in is not that it doesn’t display garbage, because those strings are dead weight and they will never be seen by human beings – unless one opens up the font in a hex editor or decompiles it with ttx, or perhaps if the CFF font is embedded in a PDF (not sure). It’s the name table strings the ones the user will be shown. What you’re interested in is that the rest of the CFF table isn’t rejected because of those useless pieces of string.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Skip TTF-only checks for OTF fonts #2040 - GitHub
I guess this should be solved with the conditions stuff, so that CFF/OTFs are distinguished from TTFs and all TTF-only checks are skipped....
Read more >
Ruby: URI::InvalidURIError (URI must be ascii only
The answer just came to me by asking myself the question: begin uri = URI.parse(url) rescue URI::InvalidURIError uri ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found