go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/sdk/slant/font.go (about)

     1  /*
     2  
     3  Copyright (c) 2023 - Present. Will Charczuk. All rights reserved.
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository.
     5  
     6  */
     7  
     8  package slant
     9  
    10  // Font represents a single font.
    11  type Font struct {
    12  	// Height of one char
    13  	Height int
    14  	// Baseline is the height of letters not including descenders.
    15  	Baseline int
    16  	// Width of the widest char
    17  	Width int
    18  	// Hardblank symbol is the non-smushable space character.
    19  	Hardblank rune
    20  	// A string for each line of the char
    21  	Letters [][]string
    22  }