From 944bf4364d72cef3c55f212628a3414ffcbf961c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 21 Apr 2000 01:59:43 +0000 Subject: Changed font sizing to use more Windows compatible calculation Some unfinished work on fixing folding bugs. --- gtk/PlatGTK.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index a1e480030..57004f19f 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -236,6 +236,11 @@ int Surface::LogPixelsY() { return 72; } +int Surface::DeviceHeightFont(int points) { + int logPix = LogPixelsY(); + return (points * logPix + logPix / 2) / 72; +} + void Surface::MoveTo(int x_, int y_) { x = x_; y = y_; -- cgit v1.2.3