d2d.sdl2.Font

Font

Members

Classes

Font
class Font

Fonts are contexts for displaying strings Fonts describe how each character in the string looks and how they are spaced Each font includes a collection of supported glyphs and general information TODO: allow for multiline printing

Enums

Encoding
enum Encoding

The three types of encoding TTF can use LATIN1 is the set of ASCII characters; its glyphs are represented as chars UTF8 is the set of "Unicode" characters; it can handle all ASCII characters as well because ASCII is a subset of Unicode UNICODE encoding is determined by operating system; Windows handles UNICODE using UTF16, while UNIX systems use UTF8 Note: UNICODE is identical to UTF8 in some cases but uses ushorts to represent glyphs instead of using chars

Meta