Typography icon indicating copy to clipboard operation
Typography copied to clipboard

Differences in the MSDF generation results...

Open hexland opened this issue 7 years ago • 5 comments

I've encountered some differences in the generation of MSDF bitmaps between this Typography library, and the original C++ MSDFGen implementation from which it is adapted.

With certain fonts (hand made ones, using FontForge) - certain glyphs are producing different MSDF maps - but it is only certain glyphs... the majority appear to be OK.

For example...

LayoutFarm - layoutfarm_b MSDFGen - msdfgen_b

Look pretty much equivalent (apart from the page size, but that's fine)

However, the same code generating glyph:

LayoutFarm - layoutfarm_a MSDFGen - msdfgen_a

Any idea what could be going on?

Font --- shardailes.zip

hexland avatar Jul 30 '17 02:07 hexland

Are the (A) and (B) generated from the same version of Typography Lib?

LayoutFarm - layoutfarm_b MSDFGen - msdfgen_b

(A)


LayoutFarm - layoutfarm_a MSDFGen - msdfgen_a

(B)


It is about how to set color component order RGBA VS BGRA (Windows Gdi+ color and OpenGL color compo)

prepare avatar Jul 30 '17 02:07 prepare

please send the font ( shardailes.zip) to my email again. I can't download from that link.

prepare avatar Jul 30 '17 02:07 prepare

Sent. Thank you for looking at it.

Yes, the A & B are both generated from the same Typo lib.

I generate a batch of characters (32-254) using the Typo lib - most of which come out almost identical (as far as the eye can tell) to MSDFGen -- but there are some odd ones (in this case, A + X) that are completely different.

I also have issues with some punctuation, and odd artifacts in some glyphs...

As far as I can tell, stock windows fonts are fine -- this just may be something to do with the way in which we author our fonts for processing.

Thank you

hexland avatar Jul 30 '17 04:07 hexland

@hexland , which version of your native msdf exe / what is your command line parameters

these are my results from native msdf exe

https://drive.google.com/open?id=0By55ijpaDeJ0TzM4bTQ2TEZxSFk


(I have a problem about upload (drag-drop) result imgs to the GitHub)

prepare avatar Jul 30 '17 12:07 prepare

ping @hexland

;)

prepare avatar Jul 31 '17 22:07 prepare