#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Ultimate Font Override by Blizzard
# Version: 1.02b
# Type: Project-Script Compatibility Improvement
# Date: 19.10.2006
# Date v1.01b: 30.7.2007
# Date v1.02b: 15.11.2008
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# You can change the font/fontsize with the "Call script" event command or
# directly through a script by using these methods:
#
# $game_system.fontname = "FONTNAME"
# $game_system.fontsize = FONTSIZE
#
# It will override the font from any RMXP version. It is also possible to
# change the font during the game. It will be saved, too.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Font.default_name = 'Fixedsys Excelsior 2.00' # default font name
Font.default_size = 30 # default font size
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#==============================================================================
# Game_System
#==============================================================================
class Game_System
attr_reader :fontname
attr_reader :fontsize
alias init_ultimate_font_override_later initialize
def initialize
init_ultimate_font_override_later
self.fontname = Font.default_name
self.fontsize = Font.default_size
end
def fontname=(name)
Font.default_name = $defaultfonttype = $fontface = @fontname = name
end
def fontsize=(size)
Font.default_size = $defaultfontsize = $fontsize = @fontsize = size
end
end
#==============================================================================
# Bitmap
#==============================================================================
class Bitmap
alias init_font_override_later initialize
def initialize(w, h = nil)
if w.is_a?(Numeric) && h.is_a?(Numeric)
init_font_override_later(w, h)
else
init_font_override_later(w)
end
if $game_system != nil && $game_system.fontname != nil &&
!$scene.is_a?(Scene_Title)
self.font.name = $game_system.fontname
self.font.size = $game_system.fontsize
else
self.font.name = Font.default_name
self.font.size = Font.default_size
end
end
end