[Gambas-user] Font array accessors

Tobias Boege taboege at ...626...
Tue Mar 25 15:00:41 CET 2014


Hi,

the Font class (gb.qt4) allows to create Fonts via its _get() method. The
_get() documentation lists a correct example, the main Font documentation
page lists a non-working example. The second one does not work because the
Font properties are separated by commas which are occasionally followed by
spaces.

If you write Font["Arial, 12, Bold"], the bold attribute is not recognised,
the size value of 12, however, is (CInt(" 12") returns 12, too...). So,
should we clarify the documentation or Trim$() the individual components?

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list