[futurebasic] embedding fonts

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 1998 : Group Archive : Group : All Groups

From: Lucy24@...
Date: Wed, 11 Feb 1998 15:40:52 EST
I'm new to this list & missed the original post, but may I jump in?

>Hi,
>
>I just can't find how to include fonts in my app.
>I tried copying the FOND resource of a font to my app,
>but Resedit say 'Resource not found'.
>
>I think i can call the FONT with:
>TEXT ID, SIZE
>
>But how do i embed it in my app ?
>
>Also, the statement 'TEXT ID, SIZE' , will apply to
>all the text in the following EDIT FIELD.
>What if the EDIT FIELD has multiple fonts ?
>
>Any code ?
>
>Thanks
>SG

The FOND alone merely tells the code where to find the FONT or NFNT (depending
on format), which you also need to copy. Take only the one for the size you're
actually using, and edit out (in ResEdit or font editor of your choice) all
characters that aren't used in your application--assuming you're using it for
display of specific text, or a particular type of input, whose content you can
predict. This not only trims a couple of k's from the size of your
application, it makes it pretty impossible for users to sneak in and steal the
font.

To enlarge the subject: using copies of fonts in your own application is often
an _excellent_ idea, since common fonts such as Geneva and Palatino come in
many variations that affect line height and hence the appearance of displayed
text.

Now, does someone out there know how to _rename_ a copied font (_newYork >
myBigApple) without fear of ID conflict?