RPG Maker Times

Smile Game Builder and RPG Maker Tutorials, Plugins, Resources, Windowskins

Simple Font Draw

As the title suggests, this is a simple routine for redefining fonts, such as name, size, bold, italic, etc. Although this was written in RMXP, it should also work in RMVX and RMVXA.

The default format for manipulating fonts in windows is:

self.contents.font.name = "font name"
self.contents.font.size = 22
and so on. The reason that self.contents is used first is because this refers to the bitmap (Bitmap) used for the window’s contents.

Whenever fonts need to be "drawn" into a window, the font and draw methods will be called from Bitmap and written into the window contents area.

Categories

Archives

Follow me on Twitter

Sponsored Ad

Sponsored Ad


Hi-Tex House Pack Vol. 1

For Smile Game Builder

The Hi-Tex House Pack Vol. 1 contains 297 assets: 284 house wall terrains and 13 models. Get your copy for only $5!
© 2008-2018, Companion Wulf. All Rights Reserved.