From 1561eac7a426b84e4a15b40aad0962cf2a8cfc8c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 23 Sep 2010 17:29:52 +0900 Subject: [PATCH] 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) --- tools/Forge/Bundles/MapEdit/XYView.m | 2 +- tools/Forge/Bundles/MapEdit/ZView.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/Forge/Bundles/MapEdit/XYView.m b/tools/Forge/Bundles/MapEdit/XYView.m index 33a5bdc70..003b82ea2 100644 --- a/tools/Forge/Bundles/MapEdit/XYView.m +++ b/tools/Forge/Bundles/MapEdit/XYView.m @@ -811,7 +811,7 @@ NSRect xy_draw_rect; // setup for text // PSselectfont("Helvetica-Medium",10/scale); - [[NSFont systemFontOfSize: 10 * scale] set]; + [[NSFont systemFontOfSize: 10] set]; PSrotate (0); if (drawmode == dr_texture || drawmode == dr_flat) diff --git a/tools/Forge/Bundles/MapEdit/ZView.m b/tools/Forge/Bundles/MapEdit/ZView.m index acb581b52..46a6326ad 100644 --- a/tools/Forge/Bundles/MapEdit/ZView.m +++ b/tools/Forge/Bundles/MapEdit/ZView.m @@ -363,8 +363,8 @@ Rect is in global world (unscaled) coordinates [path removeAllPoints]; PSsetgray (0); // for text - [[NSFont systemFontOfSize: 10 / scale] set]; PSrotate (0); + [[NSFont systemFontOfSize: 10] set]; for (; y <= stopy; y += 64) { if (showcoords) {