Image format for get_font_id(<file_name>)
Does someone have an example of what the format of an image is supposed to be for use with get_font_id(<file_name>)? My text shows up as thin vertical slices of random characters instead of the characters I type. I assume it's a problem with my .png image and/or the .txt file that accompanies the image. Here's what I did:
- Made an image with of the characters in windows-1252 order: !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
- I omitted control characters and any characters after 126, since I wasn't sure how to render them
- I Put a single red (#FF0000) pixel in the top left corner of each character in the image
- I made a .txt file to accompany the image just like other images. I don't know if it needs special content for fonts.
fontimage.txt:
Has Alpha Channel: yes Number of Animations: 94 Horizontal Animation: yes Vertical Resizable: no Horizontal Resizable: no Fixed Top: 0 Fixed Bottom: 0 Fixed Left: 0 Fixed Right: 0
What am I doing wrong?
Best Answer
-
Number of animations needs to be 1. The PNG absolutely has to have 256 #FF0000 dots. So first 32 chars also need 32 red dots, and anything after ~ also needs their red dots.
Also, this plugin for Figma could be useful!
0
Answers
-
Number of animations needs to be 1. The PNG absolutely has to have 256 #FF0000 dots. So first 32 chars also need 32 red dots, and anything after ~ also needs their red dots.
Also, this plugin for Figma could be useful!
0
Categories
- All Categories
- 19 Welcome
- 1.5K Hangout
- 61 NI News
- 772 Tech Talks
- 4K Native Access
- 16.4K Komplete
- 2K Komplete General
- 4.3K Komplete Kontrol
- 5.7K Kontakt
- 1.6K Reaktor
- 376 Battery 4
- 835 Guitar Rig & FX
- 425 Massive X & Synths
- 1.3K Other Software & Hardware
- 5.7K Maschine
- 7.2K Traktor
- 7.2K Traktor Software & Hardware
- Check out everything you can do
- Create an account
- See member benefits
- Answer questions
- Ask the community
- See product news
- Connect with creators