Re: [fpc-pascal] Font handles from Win API

2007-03-19 Thread Wolfram Kläger
I wrote something like >... CallbackProc( >...EnumFontFamilies( > DeviceContext, The problem is solved. Finally I managed to draw text of any style on any bitmap I want by squeezing Windows GDI the way it likes to be squeezed. Fortunately, the FPC windows unit works great. In some sp

[fpc-pascal] Font handles from Win API

2007-03-16 Thread Wolfram Kläger
Hi everyone, IŽm too stupid for Windows. Before drawing text on a bitmap, I need to know the handle of the selected font, specified by name, say 'Arial'. This is my last attempt. Anybody knows, where IŽm still wrong? function CallbackProc( var AFontInfoVar : TEnumLogFont; var AMetric