Click to See Complete Forum and Search --> : how to get dot array about font from windows fonts library?


bonze2000
October 8th, 2004, 03:37 AM
how to get dot array about font from windows fonts library?

ovidiucucu
October 8th, 2004, 06:27 AM
You mean you want to enumerate the fonts in the system (eventually put some characteristic(s), e.g. face name in an array)?
I yes, take a look at EnumFontFamiliesEx Windows SDK function in MSDN.

dolomighty
October 11th, 2004, 11:32 AM
i think you want to have a pixel map of some windows charset.
maybe you are building a graphic version of the C printf function...

if it is, you first have to render the font (or the chars you need) somewhere (a GDI bitmap is good) and then read back the rendered image: this will be your dot array, as you call it.

looking at these functions can help:
ChooseFont, SetBkMode, CreateFontIndirect, SelectObject, SetTextColor, DrawText, DeleteObject, GetStockObject