The reason I ask is that about 1% of my customers are finding that my app (which uses revFontLoad) does not load the font, which is tucked inside the application bundle. The result returns a not very helpful "unable to load font" message. When the application starts up it looks in the fontnames to see if the font is present. If not and revFontLoad doesn't work, the app copies the font out to disk and instructs them to manually install the font in their user font folder and restart. For some, even this does not work. Though one person said the font worked in their email program but not in my app . . . and sure enough it was.

The next step is that I have them clear the font cache by doing a safe boot and then a normal boot, this seems to make things right - with the manually installed font. I haven't experimented with clearing the font cache and then trying revFontLoad. I can't replicate the problem, which makes it hard to trouble shoot. When you mentioned using shell to install fonts, I just wondered if going that route was a more reliable way of installing fonts.

Marty K
You just put the font file into /System/Library/Fonts. You have to shell it if 
the user is not an admin because of permissions. The shell command is simply 
the one to copy, but you may have to sudo it because it is in the System 
package. Alternately you could put the font into the user's font folder 
~/Library/Fonts (surprisingly this is how Microsoft does it when they run their 
Office Install the first time you run an Office product in a profile). This way 
you would not have to sudo or shell because the user (presumably) has write 
permission to his own library.

For Windows however, I am not sure how you would go about doing that. Lemme 
google... AH YES! Here you go.
http://www.sevenforums.com/general-discussion/28817-installing-fonts-via-command-line-script.html

Bob

ps. Google is your friend.

On Jul 26, 2011, at 6:57 PM, Marty Knapp wrote:

I've not tinkered with shell commands - what is the shell command for 
installing fonts on Mac?

Marty K
It's been an assumption of mine that if planning for standalone application 
cross platform support, there are three approaches:

1. ONLY use fonts common to all systems. This is fairly easy with Windows and 
Apple, but becomes problematic with other flavors.
2. Create an installer that includes the truetype fonts you use, and install 
them via a shell. This of course may mean licensing the fonts you want to use, 
unless you choose public domain fonts.
3. Script for the detected operating system and as Scott said, brute force it. 
This is just ugly, but is probably the most flexible way to go about it.

my 2ยข. Not saying anything new I suppose. I had an issue years ago where 
Microsoft had a font they used in Windows which Foxpro made much use of, and 
the app I developed for was built around it. I was porting a Mac version of the 
app, so I contacted Microsoft to see if I could get a copy of the font for use 
on Apples, and was willing to license it. They took the line that all parts of 
the Microsoft operating system were part and parcel of it, and would not allow 
me to obtain or use it under any circumstance, even though I was using 
Microsoft Foxpro for the Mac.

Is it lawyers that make companies anal, or vis versa?

Bob


On Jul 26, 2011, at 3:11 PM, J. Landman Gay wrote:

On 7/26/11 4:35 PM, Scott Rossi wrote:
I personally have been fighting a lot with cross platform font issues and
find it a chore.  When using stacks' non-default fonts/sizes, I've found no
other solution than to brute-force set these upon opening stacks.  Maybe
someone else knows the secrets for handling this better.
I do the same thing and it's a pain. I think this is something that profiles 
are supposed to be good for, but I haven't actually tried them.

--
Jacqueline Landman Gay         |     [email protected]
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to