Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differences in the MSDF generation results... #50

Open
hexland opened this issue Jul 30, 2017 · 5 comments
Open

Differences in the MSDF generation results... #50

hexland opened this issue Jul 30, 2017 · 5 comments

Comments

@hexland
Copy link

hexland commented Jul 30, 2017

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

@prepare
Copy link
Member

prepare commented Jul 30, 2017

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
Copy link
Member

prepare commented Jul 30, 2017

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

@hexland
Copy link
Author

hexland commented Jul 30, 2017

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

@prepare
Copy link
Member

prepare commented Jul 30, 2017

@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
Copy link
Member

prepare commented Jul 31, 2017

ping @hexland

;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants