get default system font

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cor.

After using different fonts for different gadgets I want return to the original system font.

CloseFont(0), Does not work.

How do I return to the system default font?



Using Windows 98 SE
Registered PB version : 3.1 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> How do I return to the system default font?

Use this command: SetGadgetFont(GetStockObject_(#ANSI_VAR_FONT))

Fred: You once said that 'SetGadgetFont(0)' would do it... I tried it but it
doesn't work yet (in case you've forgotten).


PB - Registered PureBasic Coder

Edited by - PB on 08 June 2002 23:41:08
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cor.

Thanks PB,

It works.

Using Windows 98 SE
Registered PB version : 3.1 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
Post Reply