Page 1 of 1

Importing fonts?

Posted: Tue Jan 12, 2010 6:49 pm
by massung
I don't know if this is possible, but before I post a feature request I thought I'd see what others do.

Problem: The Win32 and Mac versions of my app are visually different due primarily to fonts. I develop on Mac and all the default fonts don't exist on Windows.

Solutions: I've tried several things so far, some work better than others, but I really don't like any of them currently:
  • Choose a font that does exist commonly between platforms (like "Courier"). Yuck.
  • On openStack run through fields and buttons and change the font if "Win32". Annoying.
  • Import a TT font that I like into the stack and be able to use that on all platforms. Ideal.
I'd like to to the last option there, but I don't know if that's possible. Is it? Anyone have any other suggestions?

Thanks!

Jeff M.

Re: Importing fonts?

Posted: Wed Jan 13, 2010 12:06 pm
by Mark
Hi Jeff,

Download this font and save the individual font files in custom properties inside your stack.

When you stack opens, write the contents of the custom properties to files in the temporary files directory. Make sure to sure to use the original file names again, to avoid confusion. Now use the revFont external to activate the fonts when your stack opens. De-activate the fonts before the standalone quits.

Best,

Mark

Re: Importing fonts?

Posted: Sat Dec 31, 2011 5:02 am
by teacherguy
Mark wrote:...write the contents of the custom properties to files in the temporary files directory...
Mark if you have the time and inclination could you provide a brief example or explanation of how this would play out. I have read the dictionary entry and can't get my feeble brain wrapped around it. :?

Re: Importing fonts?

Posted: Sat Dec 31, 2011 4:32 pm
by Mark
Hi,

You can save any file in a custom property with

Code: Select all

set the cSomeProperty of this stack to url "binfile:/Path/To/File.xyz"
and create the file with

Code: Select all

put the cSomeProperty of this stack into url "binfile:/Path/To/File.xyz"
This works with font files too.

Kind regards,

Mark

Re: Importing fonts?

Posted: Sat Dec 31, 2011 6:12 pm
by teacherguy
Thank you