-
|
Hi, I wrote in Discord already so I just copy it here: What could be the reason that the same font used in Java libgdx looks sharp, but in Axmol looks blurry? Does it have Anti-Aliasing or something? If you zoom in you can see it. EDIT: Image cut off was fixed by removing: bg->getTexture()->setAliasTexParameters(); CODE: bg = Sprite::create("hud0.png");
bg->getTexture()->setAliasTexParameters();
bg->setScale(0.0f);
this->addChild(bg);
TTFConfig ttfConfig("font0.ttf", 42, GlyphCollection::DYNAMIC);
label = Label::createWithTTF(ttfConfig, "", TextHAlignment::LEFT, 1230);
label->setLineBreakWithoutSpace(false);
label->setLineHeight(70.0f);
label->setAnchorPoint(Vec2(0.0f, 1.0f));
label->setAdditionalKerning(3.0f);
label->setPosition(Vec2(55, 225));
label->setScale(1.0f);
bg->addChild(label);
[...]
//Zoom in Window
bg->stopAllActions();
bg->setScale(0.0f);
auto zoom = ScaleTo::create(0.20f, 1.0f);
bg->runAction(Sequence::create(zoom, nullptr));EDIT: I put _antialiasEnabled to false in FontAtlas.h but it did not help. I use axmol version 2.9.0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
For me the axmol font looks better: The question is, which renders the font "better"? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.




Someone in Discord wrote me to do double the font size then use Scale(0.5f) and now it looks sharper.