Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12172

Re: Text scaling in Windows

From Franz Rachbauer <office@rachbauer.org>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Text scaling in Windows
Date 2019-01-21 09:57 +0100
Organization Aioe.org NNTP Server
Message-ID <q241gu$1mka$1@gioia.aioe.org> (permalink)
References <q1rq0t$1qpq$1@gioia.aioe.org> <f10bc54e-33fa-46cb-9a1c-8a3a2d618401@googlegroups.com>

Show all headers | View raw


Hi Sherlock,
thank you very much, that is exactly what I need!
Regards, Franz

Am 18.01.2019 um 10:41 schrieb Sherlock:
> METHOD PDBCheckWinFontDPI() AS LOGIC  PASCAL CLASS _DIAGNOSTIC_TESTS
> 
> 	LOCAL iFontDPI 		AS INT
> 	LOCAL cMessage 	AS STRING
> 	LOCAL lOK := TRUE	AS LOGIC
> 	LOCAL hDC 			AS PTR
> 
> 	// Check the FONT size and advise user..  Sherlock needs 96 DPI font settings.
> 	hDC := GetDC(NULL_PTR)
> 	iFontDPI := GetDeviceCaps(hDC, LOGPIXELSX)
> 	ReleaseDC(NULL_PTR, hDC)
> 	//
> 	IF iFontDPI != 96
> 		cMessage := "Your Windows font size IS NOT the standard 96 dpi (small fonts)." + CRLF
> 		cMessage += "'Sherlock' is not designed to be used with other large font settings." + CRLF
> 		cMessage += "The FONT setting is currently set for [" + AsString( iFontDPI ) + "] DPI" + CRLF
> 		cMessage += "Reset font size Windows-settings (Desktop properties) / Advanced button"
> 		InfoBox{SELF, "Warning", cMessage}:Show()
> 		lOK := FALSE           		// Not .. fontsize 96
> 	ELSE
> 		cMessage := "Your Windows font size is set for 96 dpi (small fonts)." + CRLF + ;
> 			"There is the standard setting and presents no problems."
> 		InfoBox{SELF, "Warning", cMessage}:Show()
> 	ENDIF
> 	//
> 	RETURN lOK

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Text scaling in Windows Franz Rachbauer <office@rachbauer.org> - 2019-01-18 06:59 +0100
  Re: Text scaling in Windows Sherlock <sherlock@sherlock.com.au> - 2019-01-18 01:41 -0800
    Re: Text scaling in Windows Franz Rachbauer <office@rachbauer.org> - 2019-01-21 09:57 +0100
      Re: Text scaling in Windows Franz Rachbauer <office@rachbauer.org> - 2019-01-21 13:02 +0100
        Re: Text scaling in Windows Sherlock <sherlock@sherlock.com.au> - 2019-01-21 06:07 -0800
  Re: Text scaling in Windows "Jean3Riv@gmail.com" <jean3riv@gmail.com> - 2019-01-18 10:23 -0800

csiph-web