Behdad Esfahbod

Results 1486 comments of Behdad Esfahbod

I would say this is expected. The first hump seems to be 1. python startup + reading the font file into memory (which the TTFont constructor does unnecessarily; there's an...

> Changing CBDT (EBDT) code to support lazy glyph loading should help in normal circumstances where one uses a few emojis. I hope behdad can take a look at that...

In https://github.com/khaledhosny/ots/issues/290 as well we realized that it's about time we need to add sanitization "profiles" to OTS...

``` def preWrite(self, font): mapping = getattr(self, "mapping", None) if mapping is None: mapping = self.mapping = [] self.Format = 1 if len(mapping) > 0xFFFF else 0 rawTable = self.__dict__.copy()...

Might be hard to fix it since it uses the FormatSwitching mechanism...

The logic was actually wrong. PTAL.

> > What does Microsoft and Apple rasterizer do with such fonts? We wouldn’t usually allow fonts they can’t handle, and specially if they don’t fail gracefully. cc @jfkthame >...

> (Just patching ParseVariationStore wasn't sufficient to get through OTS, as the CFF2 table was also rejected for invalid CharStrings; I had to make it skip CFF2 validation altogether.) Yes,...

> Windows 10 refuses to install the font; it tells me it's "not a valid font file". > > I was able to load it as a webfont resource in...