Skip to content

jo-tools/customappfonts

Repository files navigation

Custom App Fonts

Xojo example project

License: MIT

Description

This example Xojo project shows how one can embed custom App Fonts in Xojo-built applications.
The fonts are not being installed on the OS - they are only available while the application is running. This may be necessary, depending on the license of your fonts.
On Windows and Linux it's even possible to load/unload during runtime.

ScreenShots

Example application: macOS
ScreenShot: Example App - macOS

Example application: Windows
ScreenShot: Example App - Windows

Example application: Linux
ScreenShot: Example App - Linux

Xojo

Requirements

Xojo is a rapid application development for Desktop, Web, Mobile & Raspberry Pi.

The Desktop application Xojo example project CustomAppFonts.xojo_project is using:

  • Xojo 2023r4
  • API 2

How to use in your own Xojo project?

  1. macOS: Fonts are being added using
    • Info.plist (see the corresponding project item)
    • Post-Build CopyFiles-Step
      • Destination: Resources Folder, Sub Directory: AppFonts
  2. Windows/Linux: Fonts are being added using
    • Declares in modCustomAppFonts (see the corresponding Module in the project)
    • Post-Build CopyFiles-Step
      • Destination: App Parent Folder, Sub Directory: AppFonts

About

Juerg Otter is a long term user of Xojo and working for CM Informatik AG. Their Application CMI LehrerOffice is a Xojo Design Award Winner 2018. In his leisure time Juerg provides some bits and pieces for Xojo Developers.

Contact

E-Mail    Follow on Facebook    Follow on Twitter

Donation

Do you like this project? Does it help you? Has it saved you time and money?
You're welcome - it's free... If you want to say thanks I'd appreciate a message or a small donation via PayPal.

PayPal Dontation to jotools