[Gambas-user] Font array accessors

Benoît Minisini gambas at ...1...
Tue Mar 25 15:54:06 CET 2014


Le 25/03/2014 15:00, Tobias Boege a écrit :
> 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
>

It's possible to become more tolerant by accepting spaces, as it is 
backward-compatible.

At the moment, the documentation should be fixed.

-- 
Benoît Minisini




More information about the User mailing list