Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determine whether font is monospace or proportional?



Chris Branch wrote:

> To elaborate a bit more, I need to store font information in a file such that
> I have enough information to: 1) request the same font again when the file is
> re-loaded, or 2) pick a good substitute if the font is not available.  Storing
> only the font name would probably be OK for #1, but would not work so well for
> #2.  Also, this file format will be cross platform (Windows and Mac).  Windows
> does this for me automatically because, to request a font in Windows, I have
> to fill out a LOGFONT structure that contains: font name, character set,
> family, pitch (monospace/proportional width), etc.  Windows finds the "best
> match" by weighing each of the properties I request against the available
> fonts on the machine (name and character set are most important in Windows and
> therefore contribute the most weight).
> 
> So, I'm looking for a way to find similar information for given font on OS X
> so that I can persist this information in my file.  I asked about monospace
> vs. proportional width as a starting point with the intention I would move on
> from there once I found that answer.  But I'm not off to a very good start
> :-).  I know nothing about the internals of .ttf files (or other font
> formats), and to be honest, I had hoped to keep it that way.  But it sounds
> like that may not be possible.

On the Mac-side, check out FontSync. This has been in the system for a while
now, and its purpose is to provide a condensed summary of a given font for
inclusion in a document, such that when that document is opened on another
machine the correct font is chosen.

Dave

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >RE: Determine whether font is monospace or proportional? (From: Chris Branch <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.