1
$\begingroup$

I'm running Blender 2.77 on a MacBook Air with OSX 10.11.6 with just the built-in keyboard and trackpad (I mostly script stuff). When I type Ctrl++ it doesn't make the font in the Python console larger, it just shows a string of "===". I've tried all kinds of other two and three-key combinations, but the font never gets bigger.

I'll give a talk introducing Blender scripting to some Python programmers, and I'd really like them to see what's going on there. I'll take any kind of work-around that makes the text bigger without chaning the Python console window size edit: or changing the font size in all the windows at the same time.

I looked around in preferences and couldn't find an explicit font size for the Python console, but there may be some keyboard mapping I can do?

I bought the computer in the far east and it types in Traditional Chinese as well - I don't know if that influences the settings. Another person with same situation here (MacBook Air, OSX, Chinese Keyboard, Blender) had no problem with it.

enter image description here

above: Ctrl++ just gives equal signs

enter image description here

above: couldn't find anything helpful here

$\endgroup$

3 Answers 3

2
$\begingroup$

If you follow the way blender stores the screen layout you will find the space used by the console has a font_size property, setting that will get the result you want.

A small script is easier than finding it manually.

import bpy

for a in bpy.context.screen.areas:
    if a.type == 'CONSOLE':
        a.spaces[0].font_size = 16

Alternatively for the current console, keep in mind bpy.context is by default aliased as C:

# repeatedly execute until satisfied
C.space_data.font_size += 1
$\endgroup$
2
  • $\begingroup$ yippie yay yay for Python OK! OK this is a really helpful introduction to screen areas, and it will be a simple but compelling example in my basic talk. Thank you! $\endgroup$
    – uhoh
    Commented Nov 23, 2016 at 7:42
  • 1
    $\begingroup$ @zeffii nice to see you again, helpful as always! $\endgroup$
    – uhoh
    Commented Nov 23, 2016 at 9:08
2
$\begingroup$

In the help text it says: "Zoom: Ctrl +/-, Ctrl-Wheel" I see you tried ctrl +/-, but try the scroll wheel.

So, with the mouse hovering over the console pane, hold down ctrl and scroll with the middle mouse button to resize.

$\endgroup$
3
  • $\begingroup$ Thanks, but if you read the question you will see I do not have a scroll wheel. I have no problem doing anything else in Blender with my track pad, but I can't believe that a font size in a Python window exclusively for typing and reading text would be the one window that requires me to go out and invest in a 3-button mouse!! That would be ironic considering I've never needed nor used a mouse with Blender! $\endgroup$
    – uhoh
    Commented Nov 22, 2016 at 14:54
  • 1
    $\begingroup$ @uhoh Can't you scroll with a touchpad? $\endgroup$
    – 10 Replies
    Commented Nov 22, 2016 at 15:55
  • 1
    $\begingroup$ If there is something scrollable and the cursor is over it, two fingers scrolls. But I don't have a hard-wired, dedicated scroll wheel. If the cursor is over the Python console, then two fingers scrolls up and down. It looks like this: youtube.com/watch?v=9wyVwZUuKOw $\endgroup$
    – uhoh
    Commented Nov 22, 2016 at 16:02
2
$\begingroup$

Go to user preferences

enter image description here

Look at the DPI setting in system, under general

enter image description here

Change the resolution

enter image description here

$\endgroup$
4
  • $\begingroup$ OK got it (in my version it's called System not general). But it's a global thing and makes the UI look ridiculously crammed and cartoonish. I'll consider it, but I really need something that only affects the Python console. Thanks! $\endgroup$
    – uhoh
    Commented Nov 22, 2016 at 13:31
  • $\begingroup$ @uhoh It might be ok on a projector, since you might want the audience to be able to see the UI $\endgroup$
    – 10 Replies
    Commented Nov 22, 2016 at 13:42
  • $\begingroup$ I like this answer, but I see you don't want it to effect everything. So try: With the mouse hovering over the console pane, hold down ctrl and scroll with the middle mouse button to resize. $\endgroup$
    – JTxt
    Commented Nov 22, 2016 at 13:43
  • $\begingroup$ Thanks @10Replies but I've already given one of these in the same room and I know just what I need. I need that text to be bigger without screwing up the whole thing. The scripting window has a nice font size control right there, but I'd like to show and use the interactive Python console as well. $\endgroup$
    – uhoh
    Commented Nov 22, 2016 at 15:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .