Get Available Fonts on device
Article Metadata
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;


(no comments yet)