Hi I just purchased Text candy
and when I test with vector fonts and ÅÄÖ I get
only “???” on windows and nothing on mac
the font have these chars
Is Text Candy working whit non US chars ?
[lua]local screenW = display.contentWidth
local screenH = display.contentHeight
– LOAD THE LIBRARY
TextCandy = require(“lib_text_candy”)
– LOAD & ADD A CHARSET
TextCandy.AddVectorFont (“Yard Sale”, “THISDONTWORKÅÄÖ!123”, 28)
– BACKGROUND IMAGE
–local BG = display.newImage (“background.png”)
– CREATE A TEXT OBJECT USING THIS CHARSET
local MyText = TextCandy.CreateText({
fontName = “Yard Sale”,
x = screenW*.5,
y = screenH*.5,
text = “THIS DONT WORK ÅÄÖ!123”,
originX = “CENTER”,
originY = “CENTER”,
textFlow = “CENTER”,
wrapWidth = 500,
charBaseLine = “CENTER”,
showOrigin = false,
})
MyText:addDropShadow(1,1,200)
MyText:setColor(255,0,255, 200)
MyText:applyDeform({
type = TextCandy.DEFORM_ZIGZAG,
toggleY = 1,
toggleAngle = 8,
toggleScale = 0,
minScale = 1.0
})
MyText:applyInOutTransition({
inDelay = 0,
inCharDelay = 20,
inMode = “RANDOM”,
AnimateFrom = { alpha = 0.0, time = 200, transition = easing.outExpo,x=1,y=1 },
hideCharsBefore = false,
hideCharsAfter = false,
startNow = true,
loop = false,
autoRemoveText = false,
restartOnChange = true
})
–This works
local foo2 = display.newText( “THIS WORK ÅÄÖ!123”, 152, screenH*.11, 200,300, “Yard Sale”,18)
foo2:setTextColor(0,0,0, 150)
local foo = display.newText( “THIS WORK ÅÄÖ!123”, 150, screenH*.1, 200,300, “Yard Sale”,18)
foo:setTextColor(255,0,255, 200)
foo2.y = foo.y+1
foo2.x = foo.x+1
[/lua]
[import]uid: 147488 topic_id: 27512 reply_id: 327512[/import]