embed/install font

Bob Earp rjearp at hotmail.com
Mon Jul 18 15:35:04 EDT 2005


Thanks Chip, I'll see if I can get this going however, I can't get some of 
the customers to agree to loading anything at all on their machines, yeah, 
go figure !!

I know I sound like a worn out record, but I really don't have a good answer 
when they say to me "but we didn't have to do this with your ToolBook 
projects"....

Thanks again, Bob...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bob,

Here's how I would probably go about this on XP..

1) Research what registry entries are changed in Windows when installing
a TrueType font

2) Suck up the font into your app:
set the uMyCustomFont of this stack to URL ("binfile:C:/myfont.ttf")

3) On startup spit it back out:
   a) find the specialFolder(36) which gives you the current Windows
directory and append it with /Fonts:

put specialFolder(36) & "/Fonts/" into tFontPath

check to see if your font exists

put "myfont.ttf" after tFontPath
if there is not a file tFontPath then
   put the uMyCustomFont of this stack into URL ("binfile:" & tFontPath)
   --> SET REGISTRY STUFF IF NECESSARY
end if

then check to see if you need a restart, or you can just start using the
font.

As mentioned, I believe there's a DLL somewhere which may make this
easier, but I don't know where.

-Chipp

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_________________________________________________________________
Take advantage of powerful junk e-mail filters built on patented Microsoft® 
SmartScreen Technology. 
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
  Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.




More information about the use-livecode mailing list