×
Namespaces

Variants
Actions

Get Available Fonts on device

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: qiangsir (27 Nov 2007)
Last edited: hamishwillee (23 Jul 2012)

Gets the list of typeface names available for the graphics device.

Location:

#include <GULUTIL.H>
#include <gdi.h>

Link against:

egul.lib


Source file:

	CGraphicsDevice* device = gc.Device();
CDesCArray* array = new(ELeave) CDesCArrayFlat(2);
FontUtils::GetAvailableFontsL(*device,*array);
 
TPoint pos(10,20);
for (TInt i=0;i<array->Count();i++) {
gc.DrawText(array->MdcaPoint(i),TPoint(pos.iX,pos.iY+i*20));
}
delete array;
 
This page was last modified on 23 July 2012, at 10:52.
43 page views in the last 30 days.
×