Link to home
Start Free TrialLog in
Avatar of pede
pede

asked on

Getting the right font

Hi,

How can I make sure that the font I am using in my application always will be available on other computers? Should I link it as a ressource? And how do I do that?
I am using Delphi 1.0.

Thanks,

/Pede
ASKER CERTIFIED SOLUTION
Avatar of ZifNab
ZifNab

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello you two.... I just wanted to say why do all that work when you need only one line of code to do that... Inprise have thought of that already :-)

And here is the line of code you need...

Form1.Font.Pitch := fpVariable;

Set this property to all form's Font property and there you have it... It updates the appropriate fonts depending on the resolution of the computer...
Hope this helps....

Cheers,
Viktor
Avatar of ZifNab
ZifNab

viktor,

 I don't think this works in D1.
 Besides, Pede asked how to make it so that on all PC's his own font-type (e.g. Arial, Roman, ... own made...) will be used.

Zif.
Avatar of pede

ASKER

Yep - this is what I was looking for :)

/Pede