Embeding fonts in stack

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
ClintMA
Posts: 39
Joined: Thu Jan 21, 2016 2:52 am

Embeding fonts in stack

Post by ClintMA » Wed Feb 03, 2016 10:22 am

If I embed a font in a standalone stack using an Community edition of Livecode, will users be able to download that font for their own use? I ask because I have a font that I would like to use, but its EULA says that it can only be embedded in a program that does not allow the user to download the font.

Can someone point me to a sample stack that uses an embedded font so that I can examine how the embedding is done?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Embeding fonts in stack

Post by Klaus » Wed Feb 03, 2016 12:43 pm

Hi Clint,

check "start using font file ..." in the dictionary!

Add your font(s) via the "Copy files" tab in the standalonebuilder and
then you can access them in your standalone here -> specialfolderpath("resources")
...
## Example:
start using font file (specialfolderpath("resources") & "/your_custom_font.ttf")
...


Best

Klaus

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Embeding fonts in stack

Post by jacque » Wed Feb 03, 2016 6:02 pm

The font file will be copied to the app folder on Windows and inside the app bundle on Mac. In either case it won't be embedded into the app itself, and will be copiable. It's the same for both commercial and community editions.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Embeding fonts in stack

Post by [-hh] » Wed Feb 03, 2016 10:22 pm

For the community version you could think about a temporary font-install.

You'll find an example (also works on Mac/Win/Linux) in stack
Raspberry Pi stacks collection #11
http://forums.livecode.com/viewtopic.ph ... 48#p100382
(look at script of the hidden button in substack "Help").

For the Indy version (it's worth to have one, not only from this reason) you could use encryption of the font-file and the method given by Klaus.
shiftLock happens

ClintMA
Posts: 39
Joined: Thu Jan 21, 2016 2:52 am

Re: Embeding fonts in stack

Post by ClintMA » Wed Feb 10, 2016 4:44 am

Thanks for your input, Klaus, Jacque, and Herman. Sorry to take so long to respond.

I want to follow up on this at a later time when I'm further along with my project. I realized after posting my question that I was putting the cart before the horse. Although I have been wondering about embedding fonts, I need to finish prototyping my project and get some proof-of-concept coding done before I worry about fonts.

Once it's clear that things are going to work the way I'm envisioning them, I'll come back for some further clarification on embedding fonts.

Again, thanks for your help.

Post Reply