• 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: Compressing glyphs programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compressing glyphs programmatically


  • Subject: Re: Compressing glyphs programmatically
  • From: Ken Thomases <email@hidden>
  • Date: Tue, 30 Sep 2014 03:58:28 -0500

On Sep 30, 2014, at 3:04 AM, Hado Hein <email@hidden> wrote:

> I have a project with a custom font of my customer. Whyever the client wants theirs font in some typos (strings/labels/buttons on screen) to be compressed by 20%.
>
> Compressing in this case means that the glyph/character (Latin1) should be 20% smaller in width than it is in the font.
>
> I digged into the docs and found attributes for kerning and so on - but not for compressing the font. Are there any attributes to achieve this or do I need to compress an image of the text to get the desired result?

You can use negative values for NSExpansionAttributeName to achieve compression.

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Compressing glyphs programmatically (From: Hado Hein <email@hidden>)

  • Prev by Date: Compressing glyphs programmatically
  • Next by Date: Re: Dragging to Rearrange Outline View
  • Previous by thread: Compressing glyphs programmatically
  • Next by thread: Re: Compressing glyphs programmatically
  • Index(es):
    • Date
    • Thread