Text too small

Monkey Targets Forums/Android/Text too small

kheldar(Posted 2016) [#1]
This might be a dumb question, but ...How do I make my text bigger. I use the drawtext and it comes out so small it is barely readable(1440x2560 screen). I tried using code from the angelfont example and it comes out a little bigger, but not much.


Phil7(Posted 2016) [#2]
If you are using angelfont, you need a font with a size of about 50 px to be readable.
If you don't mind qualityloss or like the pixel look, you can use the matrix commands.

Import mojo

Function Main:Int()
New MyApp()
Return 0
End

Class MyApp Extends App
	Method OnCreate:Int()
		SetUpdateRate(60)
		Return 0
	End Method

		
	Method OnUpdate:Int()
		Return 0
	End Method
	
	Method OnRender:Int()
		Cls()
		If not TouchDown(0)
			DrawText("Example normal (press mousebutton for the big version)", 100, 100)
		Else
			PushMatrix() 'Save the normal matrix.
			Translate(100, 100) ' move the origin to 100,100
			Scale(4.0, 4.0) ' scale everything you draw from now on by 4.
			DrawText("Example big", 0, 0)
			PopMatrix() 'Set back to the normal matrix.
		EndIf
		Return 0
	End Method
End



kheldar(Posted 2016) [#3]
Thanks that worked!