provide a place to set the font

akkartik
Feb 6, 2024, 10:57 PM
QWPQUVBRZ2RQMHJZQPECNZRVCZSENBIBEL5JDFX25AHFUC6W5YWQC

Dependencies

  • [2] ARLTID7G replace some calls with my names
  • [3] AZMYKWMH resolve conflicts
  • [4] PRE6XPRN responsively increase/decrease font height
  • [5] UUAIVZ4U 2 bugfixes in font rendering
  • [6] 2AZCZD6X Lua Carousel now tested to load/save screens from/to save dir.
  • [7] OTJQKAQZ bugfix: update output font (and menus)
  • [8] 7RIDCIVG handle scripts that change the font
  • [9] FIUQJVL2 first draft of load/save buttons
  • [10] IQW6KIIL bugfix: changing font size
  • [11] IUOZ4YHC use the obvious name for the font global
  • [12] SIASJPGR save the list of open files across restart
  • [13] ROYQO45B mount old location of screens if possible
  • [14] YV2GBDNW preserve settings across restart
  • [15] ZENSSO3D pass remaining love handlers through
  • [16] ZM7NOBRM new fork: carousel shell
  • [17] 5RUFNRJO start of the visual skeleton
  • [18] OE26XIQO bring back syntax highlighting (but so ugly)
  • [19] VUF2SX7B implement carousel buttons for inserting/switching current pane
  • [*] R5QXEHUI somebody stop me

Change contents

  • file addition: 0158-Font_filename (----------)
    [21.2]
    -- put in a .ttf or .otf filename here to switch the font
    -- the filename must live somewhere Carousel can access: either in the source dir or the save dir
    -- A nil filename => use LÖVE's default font
    Font_filename = nil
  • replacement in 0032-update_font_settings at line 4
    [4.175][4.0:43](),[4.934][4.0:43]()
    Font = love.graphics.newFont(Font_height)
    [4.175]
    [4.43]
    if Font_filename == nil then
    Font = love.graphics.newFont(Font_height)
    else
    Font = love.graphics.newFont(Font_filename, Font_height)
    end
  • replacement in 0032-update_font_settings at line 26
    [4.1118][3.1320:1324]()
    end
    [4.1118]
    end
  • replacement in 0011-on.initialize at line 7
    [4.362][4.103:146]()
    Font = love.graphics.newFont(Font_height)
    [4.362]
    [4.146]
    if Font_filename == nil then
    Font = love.graphics.newFont(Font_height)
    else
    Font = love.graphics.newFont(Font_filename, Font_height)
    end
  • replacement in 0011-on.initialize at line 25
    [4.2347][2.266:270]()
    end
    [4.2347]
    end