Resize an attributed string without changing the font

Discussion in 'Mac Programming' started by Spraystarch, Jul 29, 2008.

  1. Spraystarch macrumors newbie

    Joined:
    Jul 23, 2008
    #1
    Is it possible to change the font size of a mutable attributed string without having to reset the font? I've got an attributed string that's displayed in a text view, and I'd like to have the font size decrease when the string gets too big to fit so that it will still fit in the view. I've got everything pretty much working, but the attributed string has substrings that use different fonts, and I can't figure out how to change the font size without also having to reset the font for each substring. Any ideas?
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    I think the only way would be to draw it into an image, and then scale down that image. But that would probably cause pixelation.
     

Share This Page