mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
new font files, fixed some font issues
This commit is contained in:
@@ -79,6 +79,7 @@ FontPtr FontManager::getFont(const std::string& fontName)
|
||||
}
|
||||
|
||||
// when not found, fallback to default font
|
||||
logError("font '", fontName, "' not found");
|
||||
return getDefaultFont();
|
||||
}
|
||||
|
||||
|
@@ -45,6 +45,7 @@ void UILineEdit::render()
|
||||
int textLength = m_text.length();
|
||||
const TexturePtr& texture = m_font->getTexture();
|
||||
|
||||
g_graphics.bindColor(m_foregroundColor);
|
||||
for(int i=0;i<textLength;++i)
|
||||
g_graphics.drawTexturedRect(m_glyphsCoords[i], texture, m_glyphsTexCoords[i]);
|
||||
|
||||
|
@@ -41,7 +41,7 @@ Creature::Creature() : Thing()
|
||||
m_walkOffsetY = 0;
|
||||
m_lastWalkAnim = 1;
|
||||
|
||||
m_informationFont = g_fonts.getFont("tibia-12px-rounded");
|
||||
m_informationFont = g_fonts.getFont("verdana-11px-rounded");
|
||||
}
|
||||
|
||||
void Creature::draw(int x, int y)
|
||||
|
Reference in New Issue
Block a user