Integrate new font for Window TItle Command

● ARCHIVED · READ-ONLY
Started by nio kasgami 12 posts View original ↗
  1. Hi people I just wounder...I try all the way I can but it seem not work

    to just change the Title Command font ...but sadly this not work at all 

    I don't want to change all the font of my game just the one for my Title Command ...

    this would include 

    • changing font name
    • changing the size
    • changing the italic
    • changing the bold 
    • changing the color
    • changing the outline
    I would appreciate your help : D! 

    all regards 

    Nio Kasgami
  2. #==============================================================================# ** Window_TitleCommand#------------------------------------------------------------------------------# This window is for selecting New Game/Continue on the title screen.#==============================================================================class Window_TitleCommand < Window_Command #-------------------------------------------------------------------------- # * New Font Settings #-------------------------------------------------------------------------- def new_font_settings contents.font.name = "VL Gothic" contents.font.size = 20 contents.font.bold = false contents.font.shadow = false contents.font.outline = true end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh new_font_settings draw_all_items reset_font_settings endendI put all the font settings in a separate def so you can read it easier.
  3. hooo my ....Why I don't think in this way! 

    thanks nathan : D! 

    I totally forgot about the COntent way! 

    but you forgot to change the window size  xD
  4. I didn't see anything about window size so I never changed it. But your welcome Nio, ha ha. =P
  5. Nathan Frost said:
    I didn't see anything about window size so I never changed it. But your welcome Nio, ha ha. =P
    haha well if you put your writing to much big for the window_height  the text will be cut off : 3 

    like this 

    JD49nwq.png
  6. Well not only height, but now we are talking line height too.

    add this def in the window

    #-------------------------------------------------------------------------- # * Get Line Height #-------------------------------------------------------------------------- def line_height return 24 end #-------------------------------------------------------------------------- # * Get Window Height #-------------------------------------------------------------------------- def window_height return fitting_height(item_max) endBe sure to match your line_height to the size of your font. I've included the window_height def as well in case you need to up size the window.
  7. Nathan Frost said:
    Well not only height, but now we are talking line height too.

    add this def in the window

    #-------------------------------------------------------------------------- # * Get Line Height #-------------------------------------------------------------------------- def line_height return 24 end #-------------------------------------------------------------------------- # * Get Window Height #-------------------------------------------------------------------------- def window_height return fitting_height(item_max) endBe sure to match your line_height to the size of your font. I've included the window_height def as well in case you need to up size the window.
    works like a charm : D! thanks pal!
  8. Nathan Frost said:
    #==============================================================================# ** Window_TitleCommand#------------------------------------------------------------------------------# This window is for selecting New Game/Continue on the title screen.#==============================================================================class Window_TitleCommand < Window_Command #-------------------------------------------------------------------------- # * New Font Settings #-------------------------------------------------------------------------- def new_font_settings contents.font.name = "VL Gothic" contents.font.size = 20 contents.font.bold = false contents.font.shadow = false contents.font.outline = true end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh new_font_settings draw_all_items reset_font_settings endendI put all the font settings in a separate def so you can read it easier.
    Just saying, you don't really need to reset the font settings afterwards since it's local to the contents bitmap of that window anyways. :)
  9. Engr. Adiktuzmiko said:
    Just saying, you don't really need to reset the font settings afterwards since it's local to the contents bitmap of that window anyways. :)
    Right, I knew that. >_> Ha thanks Adik, I had a feeling but was just playing on the safe side. :)   You know what though, my logic was else where because for something like draw item or multiple instances of defs going into a refresh method would require that line if you were to change something for one section.
  10.  I also do extra safety checks sometimes just to make sure. :)
  11. yeah me to  I always do refresh just in case for avoid some little glitch or bug who make you rage D: