mta452 / SheenFigureLegacy

A library to render arabic/urdu fonts on smartphones.
Apache License 2.0
30 stars 6 forks source link

generateCachedPages issue #14

Closed roula-misrabi closed 11 years ago

roula-misrabi commented 11 years ago

Hi there,

I'm trying to load a font using your library into my iOS application. I'm using "sheenFigureCG". I was able to use it before with some fonts.

Now I'm trying a new font, and here is the problem: Inside the method called "generateCachedPages" at: float lineHeight = self.font.leading;

the lineHeight value gets a nan value and the application crashes. Is there anyway I can fix this ?

Please find the font I'm using uploaded here: http://www.fileswap.com/dl/2OFgoxe5t6/

mta452 commented 11 years ago

Upgrade to latest version and make sure that you are providing correct path to font.

roula-misrabi commented 11 years ago

Now my problem is fixed. Thank you :)