05-10-2012 04:47 AM
I am developing an application which shows content in multiple languages, for that I am using custom font files.
The issue at hand is that when I render the text inside a Richtext field, there is a huge gap between two lines. I see two approaches to handle this situation
1) Adjust some changes in the font file e.g. reduce the typo-ascender and typo-descender. (This helps to an extent).
Though this is not a recommended approach and I get stuck after a certain limit.
2) Look up if there is some API provided by BB to specify the line gap or similar properties.
I am seeking help from this communitiy to suggest useful APIs, tweaks. Please elaborate your answer as I am new to the font business.
Thanks in Advance
05-10-2012 05:00 AM
05-11-2012 05:33 AM
Not an area of expertise for me either....
You said "using custom font files". I have always assumed that Fields like RichTextField will space out the text based on the height that they get from the Font. So if the attributes of the font you are using have a height value that is too large, then this would explain what you see. So perhaps you could look at the creation of your customer font?
Have you tried the same font in a PC application, like a Word document. Is the spacing the same there too?