Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

Think of fonts like white bitmaps
Started by michael.toan016 May 30 2018 06:08 PM

1 reply to this topic
This topic has been archived. This means that you cannot reply to this topic.
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Observer

  • 1 posts
  • Corona SDK

As seen in the images, the font is shown as a black outline with white inside lettering. This in the font file, however, are simply the borders with transparent insides (where the white would be in the screenshot). In Corona when setting the fill color of the font, it only affects the outline of the font (black part in the screenshot), and leaves the inside transparent.


Is there any way to make it with display.newText so that the outside has the black border and the inside is white (just as seen in the screenshot in the link above).


If not, is there a way to splice together the letters as individual images to make my own font system, or would this use too much graphic power (as I will be spawning bits of text very very frequently).


If anybody has any thoughts as to how I can accomplish this it would be very much appreciated.



[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Corona Geek

  • 7,492 posts
  • Corona SDK

Q: No screenshot and no link?  You referred to them, but they are not in the post.


Regardless, standard text objects do not support strokes.


I suggest using bitmapped fonts.  They are easy to use and very flexible.


This is a great library for it: https://github.com/ponywolf/ponyfont


Are you a Mac or Windows user?  


OS X Tools:


Windows Tools: 

OS X Tool:


Online Tool: