than assuming that the application font at 9pt will be useful (which it
probably won't be on non-Roman systems).
git-svn-id: svn://svn.tartarus.org/sgt/putty@2282
cda61777-01e9-0310-a592-
d414129be87e
-/* $Id: mac.c,v 1.4 2002/11/24 15:08:52 ben Exp $ */
+/* $Id: mac.c,v 1.5 2002/12/06 00:09:34 ben Exp $ */
/*
* Copyright (c) 1999 Ben Harris
* All rights reserved.
#include <DiskInit.h>
#include <Gestalt.h>
#include <Resources.h>
+#include <Script.h>
#include <ToolUtils.h>
#include <assert.h>
{
Handle h;
int len;
+ long fondsize;
SetPort(window);
BeginUpdate(window);
- TextFont(applFont);
- TextSize(9);
+ fondsize = GetScriptVariable(smRoman, smScriptSmallFondSize);
+ TextFont(HiWord(fondsize));
+ TextSize(LoWord(fondsize));
h = Get1Resource('TEXT', wLicence);
len = GetResourceSizeOnDisk(h);
if (h != NULL) {