Delphi Tips&Tricks News   Tips   .NET Software   VCL Software   Search   Contacts
Ultimate Pack - special offer!

Ultimate Pack  hot!
Image Editor  new!
Runtime Fusion
Form Designer
Object Inspector
Print Suite Pro
Commented Image
Delphi Toys
WinDowse
Delphi Bonus
TMS Scripter Studio
Form Designer VB
Form Designer .NET

...get more...
for Delphi.NET, C#, VB.NET
for Delphi VCL, BCB 3-6

WinAPI Online
Unix Manual Pages
MegaDetailed.NET
in3steps.com
cdtrrracks.com new!

Blogspot  greatis.blogspot.com

Detect font (Small or Large) is in use - System info - Tips & Tricks - Greatis Delphi Pages

Use GetDeviceCaps function with LOGPIXELSX parameter to detect what font (large or small) is in use.


procedure TForm1.Button1Click(Sender: TObject);
var
  DC: hDC;
begin
  DC:=GetDC(Form1.Handle);
  if GetDeviceCaps(DC, LOGPIXELSX) = 96 then
    Label1.Caption:='Small font is in use';
  if GetDeviceCaps(DC, LOGPIXELSX) = 120 then
    Label1.Caption:='Large font is in use';
  ReleaseDC(Form1.Handle, DC);
end;
Related chapters
Registry
System

Related topics
Detect windows version
Use registry instead of *.ini file
Run program not in StartUp Folder

For more
Delphi Help
Win32 programmer's reference

Download source