Quick Links:
Download Gideros Studio
|
Gideros Documentation
|
Gideros Development Center
|
Gideros community chat
How to use TTFont resource on sub directory - Gideros Forum
Home
Discussions
Sign In
Home
›
Bugs and issues
Sign In
·
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Categories
7.5K
All Categories
9
Help with translations
4.1K
General questions
101
Roadmap
339
Game & application design
297
Plugins
64
User experience
70
Marketplace
280
Code snippets
33
Building a team?
258
Suggestions & requests
347
Announce your apps made with Gideros.
89
Step by step tutorials
618
Bugs and issues
203
Introduce yourself
200
Announcements
92
Forum talk
393
Relax cafe
In this Discussion
January 2013
omer
January 2013
Scouser
Top Posters
ar2rsawseen
6991
SinisterSoft
3920
hgy29
2726
keszegh
2345
antix
2127
OZApps
1983
totebo
1764
oleg
1643
hgvyas123
1412
techdojo
1321
MoKaLux
1078
phongtt
1029
Mells
1024
MikeHart
1020
john26
995
GregBUG
962
pie
962
talis
920
Apollo14
901
Scouser
898
How to use TTFont resource on sub directory
omer
Member
January 2013
edited January 2013
in
Bugs and issues
I wan to use TTFont.new("classes/tahoma.ttf", 20) on project.
But I can not use it.
However, TTFont.new("tahoma.ttf", 20) worked.
Is it possible TTFont class using virtual sub directories?
Tagged:
ttfont
subdirectory
+1
-1
Share on Facebook
Comments
Scouser
Guru
January 2013
edited January 2013
Accepted Answer
Have you added tahoma.ttf to the classes folder in your project (not your actual file structure but the file structure in your project panel)?
This used to always catch me out. You have to add a new folder to your project panel, then add your font to that folder.
Twitter:
https://twitter.com/#!/scouser
Website:
http://www.castlegateinteractive.com
https://play.google.com/store/apps/developer?id=Castlegate+Interactive
+1
-1
Share on Facebook
omer
Member
January 2013
Thanks, it seems my dirty code has problems. I tested on clean code with virtual classes on your recommendation and it worked.
+1
-1
Share on Facebook
Sign In
or
Register
to comment.
Powered by Vanilla
Comments
This used to always catch me out. You have to add a new folder to your project panel, then add your font to that folder.
Website: http://www.castlegateinteractive.com
https://play.google.com/store/apps/developer?id=Castlegate+Interactive