Print Page | Close Window

what does "SetGlobalFont" do ?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=14719
Printed Date: 21 December 2024 at 9:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: what does "SetGlobalFont" do ?
Posted By: jshan
Subject: what does "SetGlobalFont" do ?
Date Posted: 10 July 2009 at 11:25am
Hi.
 
Recently, I found the fact that fresh XP systems dont have a font "Segoe UI" which i preferred and defaults in VISTA.
So I checked out the font with XTAuxData().FontExists(_T("Segoe UI")); and if FALSE,
load "Verdana" instead by XTAuxData().SetGlobalFont("Verdana");
 
But it seems it did nothing.
 
is there a way to override FontSets in XTPPaintManager that effects entire library ?
 
would anyone give me a right way to solve this pro ?
 
regards.
 


-------------
: xtp 16.2.0(Unicode static lib)

: windows 7 Pro Kor sp1(64bit)

: vs 2012 update 2 MFC




Replies:
Posted By: Oleg
Date Posted: 13 July 2009 at 2:22am
Hi,
 
There is no global font now - you have set it manually for each PaintManager you use.
like XTPPaintManager()->SetCommandBarsFontIndirect(..);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net