I'm following the lesson to set up a custom password font:
https://revolution.screenstepslive.com/ ... word-field
but I get an error "Can't load font file". So, it works in the IDE and Windows standalone but not in Android. Any help?
My code is on a preOpenStack handler and I added the PasswordEntry.ttf file on the standalone settings "Copy Files". The file is on the same folder as the stack.
Code: Select all
on preOpenStack
local theFontFile, theError
set the itemdelimiter to slash
put the effective filename of this stack into theFontFile
delete the last item of theFontFile
put theFontFile & "/PasswordEntry.ttf" into theFontFile
start using font file theFontFile
put the result into theError
if theError is not empty then
answer "Error loading password font:" &cr& theError & "."
end if
end preOpenStack