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

Fix for: 'WARNING: Could not find required font "X", it has not been embedded' #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

scanline
Copy link

Sometimes an embedded font can't be found because there's a mismatch between OpenFL's registered font names and the 'real' font name.

For example the font 'Arbuckle Remix NF' gets registered as 'ArbuckleRemixNF' and fails this check:
if (alpha.replace(font.fontName, "").substr(0, fontName.length) == fontName)
because 'ArbuckleRemixNF' is not 'Arbuckle Remix NF'.

This pull request takes care of this.

Fix for fonts not being found due to spaces inside the fontName
Fix for fonts not being found due to spaces inside the fontName
@barisyild
Copy link
Contributor

@joshtynjala

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

Successfully merging this pull request may close these issues.

None yet

2 participants