Open Mickael-van-der-Beek opened 6 years ago
Hi!
It looks like a bug but I won't be able to investigate more unfortunately.
Note: You can check the glyphs visually with the Glyph Inspector
@Jolg42 Thanks for the quick reply. I'll try to find a different way then, thanks.
I am not a font specialist but my understanding of glyphs in OpenType is that they can be defined either as a standalone character or as a combinations of other glyphs (the components array attribute of the glyph).
Now in this case, I would expect for both to have the same path and bounding box.
My example uses Node.js 9.x, opentype.js 0.10.x on OSX and the font is "Menlo Regular" that can be found here: https://github.com/hbin/top-programming-fonts/blob/master/Menlo-Regular.ttf
e.g:
Since the glyph at index 916 is defined as the sum of the glyphs at index 92 and 651, I would expect for both bounding boxes to be identical but that doesn't seem to be the case.
e.g:
If we look at the path, they look to be identical besides the fact that the order of the diatric (\u0306) compared to the letter (y) is inverted. The user input string has the diatric after the letter but the "components" of the glyph has it before the letter.
e.g: https://www.diffchecker.com/gCdoMNrU
Is this a misconception by me or this considered to be a bug? Visually they seem identical so it seems weird for the paths Thanks in advance!