• 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
scaling a glyph to fit a rect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scaling a glyph to fit a rect?


  • Subject: scaling a glyph to fit a rect?
  • From: email@hidden
  • Date: Wed, 11 Jun 2003 13:24:30 -0700 (PDT)

Hello,

Can an NSGlyph (from a monospaced font) be scaled up or down to fit in a given
rect. I implemented a custom typesetter for my terminal app, and I can pretty
much control the width by using [NSLayoutManager setLineFragmentRect...] and
[NSLayoutManager setLocation], but sometimes the glyph is not drawn to use the
vertical space of the line fragment rect. The height of the line fragment rect
is determined by another font.

Can this be done?

Thanks,

Ujwal
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Problem with setWraps method
  • Next by Date: Re: Regex examples in Java 1.4.1
  • Previous by thread: Re: disable ability to drag window
  • Next by thread: NSTableView question (odd / even row colors)
  • Index(es):
    • Date
    • Thread