• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: styled text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: styled text


  • Subject: Re: styled text
  • From: Arthur J Knapp <email@hidden>
  • Date: Mon, 21 Jan 2002 11:40:50 -0500

> Date: Sun, 20 Jan 2002 15:28:58 +0000
> From: has <email@hidden>
> Subject: Re: styled text

>> 5: This appears to be a font id number, with id 21 being Helvetica,
>> id 4 being Monaco, id 3 being Geneva, and id 22 being Courier.

>> I don't know if this is "hard-coded", ie: that these ids are
>> the same on every Mac, or if they are somehow dynamically
>> generated based on what fonts you have on your system.

> It's a fixed value, unique to each font family. Pop open a screen/truetype
> font in Resedit and look at its FOND resource to see.

I have discovered that it isn't as simple as that. On a Mac with a
whole lot of fonts, there are a number of different ways in which
a font id gets resolved. Assuming a U.S. installed system, one can
probably count on Geneva and Monaco being at ids 3 and 4, but it
would be difficult to make this assumption for others.

Font management on a modern Mac is extremely complex, and not
for the timid. ;-)


>> I have a plan for a vanilla script that will perform simple
>> html formatting from a styled text. I'll keep you posted.

Still pluging away... :)


> Interesting project. Though I fear the W3C Hit Squads will be after you for
> "Crimes Against Semantic Markup" as a result.

I work for the "Just Get the Job Done, and On Time !!!" Hit Squads.

;-)


{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
<mailto:email@hidden>
try
<http://www.VivaLaData.com/>
on error number -128
end try
}


  • Prev by Date: Re: styled text
  • Next by Date: Re: styled text
  • Previous by thread: Re: styled text
  • Next by thread: Re: styled text
  • Index(es):
    • Date
    • Thread