CoreFont.load

1 view
Skip to first unread message

Dan Pichler

unread,
Oct 14, 2011, 4:32:40 PM10/14/11
to PulpCore
I have been working for the past four hours trying to get this line to
work...

CoreFont bgFont =
CoreFont.load("serif.font.png").tint(gray(128));


When I run it i get

Asset not found: serif.font.png

I have the zip file listed in the run config file as instructed

Set "assets" to "BubbleMark.zip" (unless you write your own
LoadingScene)
Set "Working directory" to the location of the "BubbleMark.zip"
file --that is, the "bin" directory where you zipped up
"BubbleMark.zip"

Also, I DO NOT get a "File not found: file:/C:/Java/TSG/myText/src/
myText.zip" error when the program runs so I am confident that it is
find the .zip file. I have in the zip file serif.font.properties
file.

I did much research and could not find the help I required to resolve
this issue. Do I need to put in the zip file a png font file or
something to make this work? Or maybe do I need a jar file for the
font???

Any help would be greatly appreciated.

Thanks
DP

David Brackeen

unread,
Oct 14, 2011, 4:44:46 PM10/14/11
to pulp...@googlegroups.com
I have in the zip file serif.font.properties file.

That sounds like the problem. The properties file is for the resource compiler, not for the runtime. The serif.font.png file should be in the zip. If you're using the Ant files everything should work seamlessly - the properties file is read, and the png is created.


--
You received this message because you are subscribed to the Google Groups "PulpCore" group.
To post to this group, send email to pulp...@googlegroups.com.
To unsubscribe from this group, send email to pulpcore+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pulpcore?hl=en.


Dan Pichler

unread,
Oct 14, 2011, 4:55:18 PM10/14/11
to PulpCore
I am using eclipse (for the first time to proof of concept this tool
(pulpcore). What I see and understand thus far of pulpcore is that it
truly does rock.

Is there something I need to do in eclipse to make it do what you
suggest? I looked in the examples\text files and did not see anything
there except the build.xml file. Do I need to do something with the
build file?

Again, any help you can provide is greatly appreciated.

DP
Reply all
Reply to author
Forward
0 new messages