neonblack

Custom Font Fix

Nov 2nd, 2013
141
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Window_BattleLog < Window_Selectable
  2.   def draw_item_name(item, x, y, enabled = true, width = 172)
  3.     return unless item
  4.     b_name = contents.font.name
  5.     b_size = contents.font.size
  6.     contents.font.name = item.fontname
  7.     contents.font.size = item.fontsize
  8.     draw_icon(item.icon_index, x, y, enabled)
  9.     change_color(normal_color, enabled)
  10.     draw_text(x + 24, y, width, line_height, item.name)
  11.     contents.font.name = b_name
  12.     contents.font.size = b_size
  13.   end
  14. end
RAW Paste Data