Thank you for your help.
The first 2 issues are probably solved. The text was unreadable because the default Sans Serif font don't support cyrillic chars, as you can see with a simple graphics.text().
The real problem was that you couldn't change loveframes font without editing themes, so I normalized the 2 sets of themes (from Nicolai and ingsoc451) to use the same font tables and published them. Now you can define the font loveframes is using without changing theme.
Code: Select all
-- Change fonts on active skin
loveframes.GetActiveSkin().controls.smallfont = love.graphics.newFont( "Arial.ttf", 10)
loveframes.GetActiveSkin().controls.imagebuttonfont = love.graphics.newFont( "Arial.ttf", 15)
-- Change fonts on all registered skins
for _, skin in pairs(loveframes.skins) do
skin.controls.smallfont = love.graphics.newFont( "Arial.ttf", 10)
skin.controls.imagebuttonfont = love.graphics.newFont( "Arial.ttf", 15)
end
I tried to solve the second issue doing an extreme conversion to utf8 library (was already there, but only used sometimes). Now almost all :len, :sub, :gsub and :char are using utf8 versions. I suspect this change can break something, so please throw everything you can to test it.
I'll look at tooltip tomorrow.