For certain projects, I'm using more and more fonts (TTF, True Type Font) for my icons instead of bitmaps. They scale better, take up less memory and work, etc.
When looking at website like IcoMoon you'll see that creating a tiny font for icons is real easy.
The only problem you'll run into is how to distribute your font with your application, without the user having to install the font.
It took me a while to figure this one out.
- While Developing your Application
While developing an application, install the font (ttf) on your system so you can see the font while developing and testing.
- Distributing your application and testing after uninstalling the font
To test this, I uninstall the font through FontBook (under "Applications" on your Mac) and make the following modifications (as an example);
1) In the application bundle (.app folder), you'll find the directories "Contents" -> "Resources". This is where I create a folder called "fonts".
2) After that I copy the font file (ttf) in "Contents" -> "Resources" -> "fonts".
3) in the "Contents" folder you'll have a file called "Info.plist", where you will have to add these 2 lines:
<key>ATSApplicationFontsPath</key>
<string>fonts</string>
Which tells your Mac that, for this applications, additional fonts can be found in
MyApplication.app/Contents/Resources/fonts
And that's all there is to it.
When running the application, without having the font installed on your system, you Lazarus application will grab the font from there and things look better ...