Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-05

TFont.Name best practices

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho

Hello,

Which guidelines do you use to choose TFont.Name? Specially because you either distribute the font with the application or you have no guarantee it will exists in the system in the chaotic universte of cross-platform development.

Different libraries have different policies about choosing the correct font if the desired one isn't present. Qt docs say that it will try to choose the best font using some kind of the logic on the name. Windows docs say nothing, so I guess it just falls to default, unless TFont.Pitch was assigned, when it tryes to find some characteristics. Any ideas about Carbon? Gtk2 should also try some logic I think ...

The problem is that with this differences it gets very hard to get guidelines about how to use this property. Maybe suppose the worse case, if unavailable it will follow to default?

thanks,

Felipe Monteiro de Carvalho

Reply by email