# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. import pygame_sdl2 as pygame try: import xml.etree.ElementTree as etree except: pass import renpy.display import renpy.text.ftfont as ftfont import renpy.text.textsupport as textsupport ftfont.init() # @UndefinedVariable WHITE = (255, 255, 255, 255) BLACK = (0, 0, 0, 255) class ImageFont(object): # ImageFonts are expected to have the following fields defined by # a subclass: # Font global: # height - The line height, the height of each character cell. # kerns - The kern between each pair of characters. # default_kern - The default kern. # baseline - The y offset of the font baseline.
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. import pygame_sdl2 as pygame try: import xml.etree.ElementTree as etree except: pass import renpy.display import renpy.text.ftfont as ftfont import renpy.text.textsupport as textsupport ftfont.init() #@UndefinedVariable WHITE = (255, 255, 255, 255) BLACK = (0, 0, 0, 255) class ImageFont(object): # ImageFonts are expected to have the following fields defined by # a subclass: # Font global: # height - The line height, the height of each character cell. # kerns - The kern between each pair of characters. # default_kern - The default kern. # baseline - The y offset of the font baseline.