The RuneScape 317 client loads four main fonts from the cache.
p11_full - A font with a point size of 11.
p12_full - A font with a point size of 12.
b12_full - A font with a point size of 12 and bolded.
q8_full - A font which is used in interfaces (the fancy style).
In the refactored clients, the specified privates are:
p11_full: aTextDrawingArea_1270
p12_full: aTextDrawingArea_1271
b12_full: chatTextDrawingArea
q8_full: aTextDrawingArea_1273
In the non-refactored clients, the specified privates are:
p11_full: aClass30_Sub2_Sub1_Sub4_1270
p12_full: aClass30_Sub2_Sub1_Sub4_1271
b12_full: aClass30_Sub2_Sub1_Sub4_1272
q8_full: aClass30_Sub2_Sub1_Sub4_1273
Whenever the client needs to write something using the font, it makes a call over to Class30_Sub2_Sub1_Sub4 (or TextDrawingArea) using one of the privates specified above. Changing the font is a very simple concept. If you want to use a different font, you just have to specify a different font to be calling the class.
For example, the "Public chat" string in the bottom-left of the client looks like:
Code:
aTextDrawingArea_1271.method382(0xffffff, 55, "Public chat", 28, true);
The above is currently using p12_full, which is "A font with a point size of 12". So in order to change the font size, you need to use a different font that is loaded into the client. Changing aTextDrawingArea_1271 to aTextDrawingArea_1270 will load the p11_full font and draw it using a different font size.
I'm not sure as to how you would go about doing so, but maybe if someone did some digging with the font cache files, they could manipulate the courses of action of the original font files and load a new font into the client. That would be pretty nice. (H)
Hopefully this tutorial was helpful. Some credits to Drags and Danno.
~Z