11-16-2011 04:46 AM
I am noticing the rightmost and bottommost edges of some characters rendered in MyriadPro-Bold.otf with bbutil_render_text() are being clipped. The amount being clipped appears to be 1 pixel off the right and bottom for some characters. I am not seeing clipping with any other fonts that I have tried, just MyriadPro-Bold.otf so far. Is anyone else seeing this?
Scott
11-17-2011 02:32 PM
Which characters do you see clipping on? HelloWorldDisplay uses MyriadPro-Bold.otf and I dont see any clipping.
Also, is this on a device or simulator?
PS I might need glasses though.
11-17-2011 03:18 PM
I will PM you tonight with a screenshot. It seems to be showing up pretty clearly against my background. I'm seeing it in the device but I will try to see how it renders on the sim.
Thanks
Scott
06-18-2012 11:04 AM
Any solution to this issue yet? We're encountering the same problem with different fonts (e.g. akzidenz-grotesk-roman.ttf) in one of our Apps.
06-18-2012 11:08 AM - edited 06-18-2012 11:17 AM
I am curious as to why you are using bbutil sample code to render text as opposed to cascades.
06-18-2012 11:13 AM
make cascades available for the pb and we are going to use it ...
06-18-2012 11:14 AM
06-18-2012 11:22 AM
you are right, but we do not want to use the qt framework. The NDK provides a class for simple rendering of text.
06-18-2012 11:25 AM
06-18-2012 11:50 AM
Bear in mind that it is a part of several samples - not a full text rendering engine as there are several intricacies when it comes to rendering text with GL/Freetype. Hence bbutil is not a general-purpose engine, but merely a collection of useful code that would otherwise be replicated over several of our samples.
Also, note that there exist open-source text engines that you can make use of. Not sure how big your app is, but you will quickly run into problems with non-english fonts both in terms of resource limitations and layouting with bbutil.
That being said, could you please PM me a distilled example that reproduces edge clipping problem? If I recall this correctly, superdirt and I could not reproduce this problem reliably. I'll look into this issue at my earliest convenience.