so I'm trying to fit longer words like "murasaki" in this:
#====================================================================
# Fragment 1 - super (x, y, width, height)
#====================================================================
class Fragment_1 < Window_Base #Window_Fragment
attr_accessor :term
def initialize
super(100, 278, 90,42)
self.contents = Bitmap.new(width-32, height-32)
refresh
self.back_opacity = 255
@term = "" #$data_chants[0].name
end
def refresh
self.contents.clear
self.contents.font.color = text_color(0)#white
self.contents.font.size = 16 #was 20
self.contents.draw_text(0, -10, 90, 32, term.to_s)
end
def update
if Graphics.frame_count / Graphics.frame_rate != @total_sec
refresh
end
end
end
But all I get is "mura" and then the rest is cut off several pixels before the text hits the boundary. Is there a way to make text fit without using an illegible font size? I would really like to use those extra border pixels.