This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

RcCookie
RcCookie presents ...

2021/2/3

Nicer Text

This scenario adds options to use different fonts than the default one used by Greenfoot. While the default font may look decent offline, it's a different one online that looks aweful. You have always been able to use different fonts, however there is one major downside to using other fonts: When using the default font you can create an image with some text on it and it will automatically have the fitting size. However to use a custom font you have to print on existing image which requires you to know the dimensions that that text will have. To work around that problem I have started to - its great fun - measure each character from a font and create some classes that then use that measured size. So far I have got this font and a monospace font which was simple.

Includes detailed documentation!

1621 views / 23 in the last 7 days

4 votes | 0 in the last 7 days

Tags: mouse demo with-source image text reuse

This scenario is a member of: Reusable classes


open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2021-02-03 12:27:05 UTC
A new version of this scenario was uploaded on 2021-02-03 13:40:41 UTC
A new version of this scenario was uploaded on 2021-02-03 13:45:26 UTC

Want to leave a comment? You must first log in.

Who likes this?

Carryminati gd_deception Game/maniac Kostya20052011