You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding some notes for others to find about my journey trying to get NPOI's CI build back working via a PR. The font information was extracted from Excel and was required for processing. Disclaimer, I'm a font noob.
APT installation of Noto Emoji, namely fonts-noto-color-emoji, has a TTF file that doesn't contain many required tables, like loca. thus parsing fails
This parses fine and was the fix for NPOI issue, replace installed one with the larger (parseable) one)
The problem report when trying to parse:
SixLabors.Fonts.MissingFontTableException
Table 'loca' is missing
at SixLabors.Fonts.FontReader.GetTable[TTableType]() in D:\Work\Fonts\src\SixLabors.Fonts\FontReader.cs:line 175
at SixLabors.Fonts.StreamFontMetrics.LoadTrueTypeFont(FontReader reader) in D:\Work\Fonts\src\SixLabors.Fonts\StreamFontMetrics.TrueType.cs:line 81
at SixLabors.Fonts.StreamFontMetrics.LoadFont(FontReader reader) in D:\Work\Fonts\src\SixLabors.Fonts\StreamFontMetrics.cs:line 356
at SixLabors.Fonts.StreamFontMetrics.LoadFont(Stream stream) in D:\Work\Fonts\src\SixLabors.Fonts\StreamFontMetrics.cs:line 349
at SixLabors.Fonts.FontCollection.AddImpl(Stream stream, CultureInfo culture, FontDescription& description) in D:\Work\Fonts\src\SixLabors.Fonts\FontCollection.cs:line 209
So while I guess this library shouldn't bother too much with such special cases, they seem to exist. It's just weird that such two separate font formats can be present depending on the platform.
Some other references while trying make sense of the problem:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Adding some notes for others to find about my journey trying to get NPOI's CI build back working via a PR. The font information was extracted from Excel and was required for processing. Disclaimer, I'm a font noob.
fonts-noto-color-emoji
, has a TTF file that doesn't contain many required tables, likeloca
. thus parsing failsThe problem report when trying to parse:
So while I guess this library shouldn't bother too much with such special cases, they seem to exist. It's just weird that such two separate font formats can be present depending on the platform.
Some other references while trying make sense of the problem:
Beta Was this translation helpful? Give feedback.
All reactions