Don't change the font size when scaling the views.

This keeps the displayed size of the text constant (text size is independent of bounds/frame scaling)
This commit is contained in:
Bill Currie 2010-09-23 17:29:52 +09:00
parent 1262dee2eb
commit 1561eac7a4
2 changed files with 2 additions and 2 deletions

View file

@ -811,7 +811,7 @@ NSRect xy_draw_rect;
// setup for text // setup for text
// PSselectfont("Helvetica-Medium",10/scale); // PSselectfont("Helvetica-Medium",10/scale);
[[NSFont systemFontOfSize: 10 * scale] set]; [[NSFont systemFontOfSize: 10] set];
PSrotate (0); PSrotate (0);
if (drawmode == dr_texture || drawmode == dr_flat) if (drawmode == dr_texture || drawmode == dr_flat)

View file

@ -363,8 +363,8 @@ Rect is in global world (unscaled) coordinates
[path removeAllPoints]; [path removeAllPoints];
PSsetgray (0); // for text PSsetgray (0); // for text
[[NSFont systemFontOfSize: 10 / scale] set];
PSrotate (0); PSrotate (0);
[[NSFont systemFontOfSize: 10] set];
for (; y <= stopy; y += 64) { for (; y <= stopy; y += 64) {
if (showcoords) { if (showcoords) {