Board index » delphi » About Fonts

About Fonts


2004-05-07 02:21:55 PM
delphi51
Hello all,
Can anyone please inform me if there is some documentation on how to create
WYSIWYG fonts? What I mean is I need to draw fonts on a canvas on screen and
what I see on screen I need it on the printer (mostly I am concerned about
the height of the fonts). I think I found a documentation on MSDN a few
months before but now I cant find it.
Thank you
 
 

Re:About Fonts

Hi.
This might not be of any help at all, but i seem to remember that it is
possible to extract dpi into from windows (of the current screen), and then
it's just a matter of dividing by pixel size i believe.
I would check out GetDEVCaps() first, or search google for it.
also check out EFG's graphics lab.
Also, visual basic had this stuff buildt into it, using TWIPS.
Alternatively, you can search for "Delphi twips" and see what you find.
Jon Lennart Aasenden,
Norway
"Peter S." <XXXX@XXXXX.COM>writes
Quote
Hello all,

Can anyone please inform me if there is some documentation on how to
create
WYSIWYG fonts? What I mean is I need to draw fonts on a canvas on screen
and
what I see on screen I need it on the printer (mostly I am concerned about
the height of the fonts). I think I found a documentation on MSDN a few
months before but now I cant find it.

Thank you


 

Re:About Fonts

Using GDI and reliable font scaling is an utopia. It is possible to use GDI
and fonts somewhat reliable, but there will always be differences between
printer and screen unfortunately.
You can try to use another font rendering engine that is more precise.
Personally I like D-Type (www.d-type.com/) but that is expensive.
If you want to use GDI anyway and save yourself some trouble you can also
look at our component DtpDocuments:
www.simdesign.nl/dtpdocuments.html
It allows drawing on the screen including zoom/pan and then printing quite
exactly what is on the screen. Also allows for rotated text and text with
shadow and other effects.
Kind regards,
Nils Haeck
"Peter S." <XXXX@XXXXX.COM>writes
Quote
Hello all,

Can anyone please inform me if there is some documentation on how to
create
WYSIWYG fonts? What I mean is I need to draw fonts on a canvas on screen
and
what I see on screen I need it on the printer (mostly I am concerned about
the height of the fonts). I think I found a documentation on MSDN a few
months before but now I cant find it.

Thank you