First sample:
And a 300% crop:
Compared to font rendering in most native apps I use, the anti-aliasing is…umm…quite poor.
I just use display.newText().
Any idea? [import]uid: 59054 topic_id: 12815 reply_id: 312815[/import]
First sample:
And a 300% crop:
Compared to font rendering in most native apps I use, the anti-aliasing is…umm…quite poor.
I just use display.newText().
Any idea? [import]uid: 59054 topic_id: 12815 reply_id: 312815[/import]
try setting antialias to true in your config.lua file [import]uid: 24641 topic_id: 12815 reply_id: 47078[/import]
Just tried this, same result.
I mean, it’s not horrible, but it’s very visible to me and doesn’t look as good as the type of font rendering done by native apps.
[import]uid: 59054 topic_id: 12815 reply_id: 47090[/import]
So, as far as anyone can tell this is “normal”? Right? [import]uid: 59054 topic_id: 12815 reply_id: 47405[/import]
@Ansca
I also suspect that something goes wrong with the fonts rendering. The quality is not the same with native apps and the fonts are not very crispy. I am talking about not-resized and not-retina objects on a 320*480 iphone screen.
@Cerberus
One thing that might help you is to ensure that you position your text objects at absolute pixel positions. If you place your objects with a mathematical type be sure to apply a repositioniong function that places the object at: x-(x%1) and y-(y%1). Try this and see if the quality gets better… [import]uid: 7356 topic_id: 12815 reply_id: 47427[/import]
Thanks, Magenda.
I’ll post the code:
local simpleText = "Phonics instruction teaches children the relationships..."
local myText = display.newText(simpleText, 0, 0, native.Verdana, 32)
myText:setTextColor(0, 0, 0)
mainScreen:insert(myText)
myText.x = math.floor(display.contentWidth / 2)
myText.y = math.floor(display.contentHeight / 2 + 200)
It doesn’t get any simpler than that.
[import]uid: 59054 topic_id: 12815 reply_id: 47500[/import]
I believe (obviously, I cannot know for sure) that ANSCA eventually renders everything to an OpenGL ES canvas.
I also believe that when it comes to font rendering, that is not optimal.
Is ANSCA using the Texture2D class to render text?
[import]uid: 59054 topic_id: 12815 reply_id: 47502[/import]
Here is another example and here it’s downright terrible:
[import]uid: 59054 topic_id: 12815 reply_id: 49090[/import]