Skip navigation

Xcode: zoom (enlarge) the text in panels

12561 Views 6 Replies Latest reply: Jan 28, 2013 6:56 PM by coryhurst2007 RSS
pvonk Level 6 Level 6 (13,670 points)
Currently Being Moderated
Jul 15, 2010 4:20 AM
"zoom" means a number of things - what I would like is to have the edit window or any of the other panels to zoom so that the small text (which is hard to read on my display) appears bigger. I'm not talking about "zoom editor in" or making the xcode window fill the display. Nor do I want to change the font size for various text strings as found in the preferences.

I just want the panels' text to appear larger on-screen, like you can do in Pages to "enlarge or reduce the view" by a given percent, e.g. 200%. Can that be done? I can't find the magic incantation if one exists.
MBPro 3.06 GHz, 8 GB; 2xMini; iTouch; OWC ExtHDs, 2xdrobo@6TB, Mac OS X (10.6.2)
  • xnav Level 5 Level 5 (6,625 points)
    Currently Being Moderated
    Jul 15, 2010 8:58 AM (in response to pvonk)
    Mac Pro 2x3GHz Dual, Mac OS X (10.6.4), BlueTooth Kybd, MagicMouse, BootCamp WinXP, WRT54G, iPhone, TV
  • Jongware Level 2 Level 2 (265 points)
    Currently Being Moderated
    Jul 15, 2010 3:20 PM (in response to pvonk)
    There are three ways of 'zooming in'. First one is to enlarge the pixels, Magnifier style (and also that of bitmap editors such as Photoshop).
    Second one is to change the font size in your panel and don't do anything else. That will cause the text to become larger, but it will also re-wrap, because the panel itself does not scale.

    I guess you are looking for the third way: zooming in on a 'virtual' image. The text wrapping ought not to be changed, so you are looking at only a part of the original image (and scroll bars are required to see the rest).
    For this to work, you'll have to do quite some programming. You need a sort of "100%" view, so you could start with wrapping the text 'normally' inside the panel. If you zoom in, you calculate the new 'virtual' bounds of the panel, draw your text at the same proportionally larger point size, then display part of it in the available space.

    Does anyone know if Cocoa scales its fonts and spacing up linearly? I.e., do you get the +same result+ for, say, a 10 pt text wrapped inside a 100 pixels wide box as a 20 pt text inside a 200 pixels wide box? If not, you might have to write your own text wrap routine that does work like that.
    Mac OS X (10.6.2)
  • dangerhuss Level 1 Level 1 (0 points)
    Currently Being Moderated
    Nov 6, 2010 10:29 PM (in response to pvonk)
    To enlarge text go to the Xcode preferences, and select Fonts & Colors. Here you can change the font size. Try out the Presentation preset, it has a large font (size 18). I personally use the Midnight one (size 11).
    MacBook Pro, Mac OS X (10.6.4), Xcode 3
  • coryhurst2007 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jan 28, 2013 6:56 PM (in response to pvonk)

    The preferences suggestion is helpful for my immediate needs, but it would be very conventient to have the ability to have a hot key combo (ctrl?) + scroll to zoom like other applications, I am speaking of VS specifically. It seems like this would be the intuitive thing for anyone to do. I know it was my first instinct. Since I am a beginner, this suggestion is especially useful. It doesn't seem to be reserved for any other functionality, I don't see why this wouldbe hard to implement. It is probably worth it.



    Processor  2.5 GHz Intel Core i5

    Memory  4 GB 1333 MHz DDR3

    Graphics  AMD Radeon HD 6750M 512 MB

    Software  Mac OS X Lion 10.7.5 (11G63)

    Xcode: Version 4.5.2 (4G2008a)


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.