Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to create Custom Fonts?
Started by elifares Aug 07 2018 09:38 AM

- - - - -
3 replies to this topic
fonts custom .ttf .otf file

Best Answer roaminggamer , 07 August 2018 - 09:41 AM

That tool is for making bitmapped fonts.  This is not the same as a TTF or OTF

 

You need a library for making text 'objects' with that:

 

https://github.com/ponywolf/ponyfont

 

 

Note: These won't actually be Corona text objects.  They will be a collection of display objects.

 

PS - I've never even considered creating a TTF from bitmapped fonts, and that doesn't seem like it would work since the bitmapped font includes color and other info.

 

Still you could google it with this search 'convert bitmap font to ttf'

 

Good luck, but I think you're going in the wrong direction with that idea.

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

elifares

[GLOBAL: userInfoPane.html]
elifares
  • Enthusiast

  • 86 posts
  • Corona SDK

I am reading this Developer Guide on Custom Fonts and it is so awesome that Corona supports both of these font files. Now, I use this font file creator site to create my custom fonts but my problem is it only saves in .fnt .txt and .font file types and I haven't been successful at finding online font file converters to convert .fnt to .ttf or .otf

 

How do you guys create your custom font files? What programs/process/sites do you use?

 

I have attached a screenshot of the custom font I am using right now and for some reason the last character of each line is cut off (1, E, S). I'm not sure why that's happening, has anyone seen this issue before or know what is causing it?

 

Thanks!

Attached Thumbnails

  • settings.jpg


[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,673 posts
  • Corona SDK

  Best Answer

That tool is for making bitmapped fonts.  This is not the same as a TTF or OTF

 

You need a library for making text 'objects' with that:

 

https://github.com/ponywolf/ponyfont

 

 

Note: These won't actually be Corona text objects.  They will be a collection of display objects.

 

PS - I've never even considered creating a TTF from bitmapped fonts, and that doesn't seem like it would work since the bitmapped font includes color and other info.

 

Still you could google it with this search 'convert bitmap font to ttf'

 

Good luck, but I think you're going in the wrong direction with that idea.



[TOPIC: post.html]
#3

elifares

[GLOBAL: userInfoPane.html]
elifares
  • Enthusiast

  • 86 posts
  • Corona SDK

I had a sense that I was going in the wrong direction.

What is the right direction in creating and using custom fonts?

How do people normally make custom .ttf or .otf font files?

 

Thanks for the reply!



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,697 posts
  • Enterprise

As far as the letters getting cut off, it could be to the extreme italics of the font and some font metrics that may not be right inside the font's metadata. One of the things you will find with fonts found on the Internet is they are not always of the best quality.  Some foundry's like Adobe and BTS will properly QA their fonts, but someone making fonts in their basement may not be coding all the information correctly.

 

You can try and add some space on to the end of the strings to see if it will fix the cutoff issue. You might want to find some font conversion software to re-process the font and maybe fix some issues. If all else fails, look for an alternative.

 

Rob




[topic_controls]
[/topic_controls]