Documentation ¶
Overview ¶
Package fonts embeds a set of FontAwesome glyphs as font data into a byte array. This can then be used with dear imgui's AddFontFromMemoryTTF() or similar, to merge the icons with the default font palette. These icons can be used alongside regular text for an inline icon.
Gopher2600Icons meanwhile is a sparse set of font data containing icons that are intended to be shown individually (ie. without accopanying text).
Image for the Controller icons taken from Wikipedia. Reduced in size to 256 pixel width; Converted to SVG with the help of Inkscape's Trace Bitmap function; and finally imported into an empty TTF file using FontForge.
Licencing ¶
Gopher2600-Icons.ttf is licenced by Stephen Illingworth, under the Creative Commons Attribution 4.0 International licence.
https://creativecommons.org/licenses/by/4.0/legalcode
The FontAwesome font (fa-solid-900.ttf) was downloaded on 18th March 2020 from https://fontawesome.com/download using the "Free for Web" button. Full URL was:
https://use.fontawesome.com/releases/v5.15.2/fontawesome-free-5.15.2-web.zip
FontAwesome is licenced under the Font Awesome Free License.
Hack-Regular was downloaded on 20th December 2021 from permalink URL:
Hack-Regular is licenced under the MIT License.
JetBrainsMono-Regular is licenced under the OFL-1.1 License
Index ¶
Constants ¶
const ( Run = '\uf04b' Halt = '\uf04c' BackClock = '\uf104' BackInstruction = '\uf100' BackScanline = '\uf106' BackFrame = '\uf102' StepOver = '\uf2f9' Disk = '\uf0c7' Mouse = '\uf8cc' GoingForward = '\uf01e' Persist = '\uf021' Breakpoint = '\uf06a' AudioMute = '\uf1f6' AudioUnmute = '\uf0f3' TermPrompt = '\uf105' ColorSwatch = '\uf111' TapeRewind = '\uf049' TapePlay = '\uf04b' TapeStop = '\uf04d' TapeFastForward = '\uf04e' EmulationPause = '\uf04c' EmulationRun = '\uf04b' EmulationRewindBack = '\uf04a' EmulationRewindForward = '\uf04e' EmulationRewindAtStart = '\uf049' EmulationRewindAtEnd = '\uf050' MusicNote = '\uf001' VolumeRising = '\uf062' VolumeFalling = '\uf063' Camera = '\uf030' Chip = '\uf2db' Unlocked = '\uf13e' CPUKilled = '\uf714' CoProcBug = '\uf188' ExecutionNotes = '\uf02b' CPUBug = '\uf188' CyclingInstruction = '\uf54b' NonCartExecution = '\uf54c' CoProcExecution = '\uf135' DisasmGotoCurrent = '\uf530' Filter = '\uf0b0' PageFault = '\uf0fe' Bot = '\uf544' Warning = '\uf071' CoProcCycles = '\uf021' CoProcLastStart = '\uf26c' CoProcKernel = '\uf5fd' // layers MagnifyingGlass = '\uf002' PaintBrush = '\uf1fc' CaretRight = '\uf0da' TreeOpen = '\uf0d7' TreeClosed = '\uf0da' ByteChange = '\uf30b' Trash = '\uf1f8' Pointer = '\uf30b' PaintRoller = '\uf5aa' Pencil = '\uf303' NoVSYNC = '\uf188' Cancel = '\uf057' TV = '\uf108' Geometry = '\uf568' Inlined = '\uf03c' Nudge = '\uf5e1' SpeechBubble = '\uf075' TimelineOffScreen = '\uf0a5' TimelineJitter = '\uf0de' TimelineComparison = '\uf02e' TimelineComparisonLock = '\uf023' )
Unicode points in FontAwesome for icons used in the application.
const ( FontAwesomeMin = '\ue005' FontAwesomeMax = '\uf8ff' )
The first and last unicode points used in the application. We use this to make sure we're using as small a font texture as possible.
const ( Stick = '\ue000' Paddle = '\ue001' Keypad = '\ue002' Tape = '\ue003' Wifi = '\ue004' Savekey = '\ue005' Gamepad = '\ue006' AtariVox = '\ue007' )
Unicode points in AtariIcons for icons used in the application.
const ( Gopher2600IconMin = '\ue000' Gopher2600IconMax = '\ue007' )
The first and last unicode points used in the application. We use this to make sure we're using as small a font texture as possible.
const ( HackMin = '\u0003' HackMax = '\u1ef9' )
The first and last unicode points used in the application. We use this to make sure we're using as small a font texture as possible.
Variables ¶
var FontAwesome []byte
var Gopher2600Icons []byte
var Hack []byte
Functions ¶
This section is empty.
Types ¶
This section is empty.