Skip to content
This repository was archived by the owner on Aug 19, 2019. It is now read-only.

fixed crash when <font> tag with unavailable font name is present#2

Merged
dbowen merged 1 commit into
dbowen:masterfrom
mciuba:master
Feb 7, 2014
Merged

fixed crash when <font> tag with unavailable font name is present#2
dbowen merged 1 commit into
dbowen:masterfrom
mciuba:master

Conversation

@mciuba

@mciuba mciuba commented Feb 6, 2014

Copy link
Copy Markdown
Contributor

It is possible that HTML contains tag <font name="..."> and the font with the given name is not available (fontWithName:size: returns nil). In such a case we will try to set NSFontAttributeName with nil value, which results in a crash. It can be simply fixed by using systemFontOfSize: when fontWithName:size: returns nil.

dbowen added a commit that referenced this pull request Feb 7, 2014
fixed crash when <font> tag with unavailable font name is present
@dbowen dbowen merged commit c47d833 into dbowen:master Feb 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants