• 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: Question about "getting" font width values for same-font characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about "getting" font width values for same-font characters


  • Subject: Re: Question about "getting" font width values for same-font characters
  • From: steve harley <email@hidden>
  • Date: Sun, 8 Feb 2004 23:53:12 -0700

on 8 Feb 2004, at 10:48 PM, Shane Stanley wrote:
On Feb 9, 2004, at 4:26 PM, steve harley wrote:

with this correction, the value for every character matches the AFM within about a hundred thousandth of a point.. still leaves some issues like Unicode

Keep in mind that you can insert Unicode characters into InDesign using strings like "<00DB>". So you might build a simple hex counting loop, rather than a string of characters. Don't know how you'd handle missing glyphs, though.

yeah, this moves away from the original question, but the main issue for me is that i have to sort out which glyphs i care about in my workflow, since otherwise i'll have many thousands of unneeded values per font.. and yes, missing glyphs are a major concern.. also, for the moment i'll need to support both "Mac-Roman" (XPress, and lots of "old-fashioned" fonts) and Unicode (InDesign, and Unicode/OpenType fonts).. there are some other minor issues i'm sure

I'd also be inclined to do it in, say, 10pt rather than 1pt, although the differences probably don't matter.

i adjusted the script & tried 5, 10 & 11 points (trying to force rounding errors).. after dividing by
point size the results were *exactly* the same to 12 decimal places.. i'll stick with 1pt, since it's the value i need anyway

And I wonder whether the results would be any different if you just set a wide frame to test_char_set and got the horizontal offset of "every character".

good suggestion -- it gives the same results, and is way fast, but less fun ;?>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: 
 >Question about "getting" font width values for same-font characters (From: Macintosh info <email@hidden>)
 >Re: Question about "getting" font width values for same-font characters (From: steve harley <email@hidden>)
 >Re: Question about "getting" font width values for same-font characters (From: Shane Stanley <email@hidden>)
 >Re: Question about "getting" font width values for same-font characters (From: steve harley <email@hidden>)
 >Re: Question about "getting" font width values for same-font characters (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Question about "getting" font width values for same-font characters
  • Next by Date: Re: Question about "getting" font width values for same-font characters
  • Previous by thread: Re: Question about "getting" font width values for same-font characters
  • Next by thread: Re: Question about "getting" font width values for same-font characters
  • Index(es):
    • Date
    • Thread