For instance:
Code: Select all
myFont = font.load("font.ttf")
smallFont = myFont
smallFont:setPixelSizes(0, 10)
mediumFont = myFont
mediumFont:setPixelSizes(0, 12)
largeFont = myFont
largeFont:setPixelSizes(0, 14)
Code: Select all
smallFont = font.load("font.ttf")
smallFont:setPixelSizes(0, 10)
mediumFont = font.load("font.ttf")
mediumFont:setPixelSizes(0, 12)
largeFont = font.load("font.ttf")
largeFont:setPixelSizes(0, 14)
This is on .16 luaplayer.
Thanks,
liquid8d