📜
RGSS Reference Manual
  • RGSS Reference Manual
  • RGSS Specifications
  • Ruby Syntax
    • Syntax and Expressions
    • Variables and Constants
    • Literals
    • Operator Expressions
    • Control Structures
    • Method Calls
    • Class and Method Definitions
  • Standard Library
    • Built-in Functions
    • Built-in Variables
    • Built-in Classes
      • Object
        • Array
        • Exception
        • FalseClass
        • Hash
        • IO
          • File
        • MatchData
        • Module
          • Class
        • NilClass
        • Numeric
          • Integer
            • Bignum
            • Fixnum
          • Float
        • Range
        • Proc
        • Regexp
        • String
        • Symbol
        • Time
        • TrueClass
    • Built-in Modules
      • Comparable
      • Enumerable
      • Errno
      • FileTest
      • GC
      • Kernel
      • Marshal
      • Math
    • Built-in Exception Classes
  • Game Library
    • RGSS Built-in Functions
    • RGSS Built-in Classes
      • Bitmap
      • Color
      • Font
      • Plane
      • Rect
      • Sprite
      • Table
      • Tilemap
      • Tone
      • Viewport
      • Window
      • RGSSError
      • RPG::Sprite
      • RPG::Weather
    • RGSS Built-in Modules
      • Audio
      • Graphics
      • Input
      • RPG
      • RPG::Cache
    • RPGXP Data Structures
      • RPG::Map
      • RPG::MapInfo
      • RPG::Event
      • RPG::Event::Page
      • RPG::Event::Page::Condition
      • RPG::Event::Page::Graphic
      • RPG::EventCommand
      • RPG::MoveRoute
      • RPG::MoveCommand
      • RPG::Actor
      • RPG::Class
      • RPG::Class::Learning
      • RPG::Skill
      • RPG::Item
      • RPG::Weapon
      • RPG::Armor
      • RPG::Enemy
      • RPG::Enemy::Action
      • RPG::Troop
      • RPG::Troop::Member
      • RPG::Troop::Page
      • RPG::Troop::Page::Condition
      • RPG::State
      • RPG::Animation
      • RPG::Animation::Frame
      • RPG::Animation::Timing
      • RPG::Tileset
      • RPG::CommonEvent
      • RPG::System
      • RPG::System::Words
      • RPG::System::TestBattler
      • RPG::AudioFile
  • Appendix
    • Regular Expression
    • sprintf Format
Powered by GitBook
On this page
  • Superclass
  • Class Methods
  • Font.new([name[, size]])
  • Font.exist?(name)
  • Properties
  • name
  • size
  • bold
  • italic
  • color
  • Class Properties
  • default_name
  • default_size
  • default_bold
  • default_italic
  • default_color
  1. Game Library
  2. RGSS Built-in Classes

Font

The font class.

PreviousColorNextPlane

Last updated 2 years ago

Font is a property of the class.

Superclass

Class Methods

Font.new([name[, size]])

Creates a Font object.

Font.exist?(name)

Returns TRUE when the specified font exists within the system.

Properties

name

The font name. The default is "MS PGothic".

Include an array of strings to specify multiple fonts to be used in a desired order.

font.name = ["HGPGyoshotai", "MS PGothic"]

In this example, if the higher priority font HGPGyoshotai does not exist within the system, the second choice MS PGothic will be used instead.

size

The font size. The default is 22 points.

bold

The bold flag. The default is FALSE.

italic

The italic flag. The default is FALSE.

color

Class Properties

default_name

default_size

default_bold

default_italic

default_color

Change the default values for each component, to be applied to each new Font object.

Font.default_name = "MS PMincho"
Font.default_bold = true

The font color (). Alpha values may also be used. The default is (255,255,255,255).

Bitmap
Object
Color