fonts

package
v0.53.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

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:

https://github.com/source-foundry/Hack/blob/a737c121cabb337fdfe655d8c7304729f351e30f/build/ttf/Hack-Regular.ttf

Hack-Regular is licenced under the MIT License.

JetBrainsMono-Regular is licenced under the OFL-1.1 License.

Index

Constants

View Source
const (
	Run                    = '\uf04b'
	Halt                   = '\uf04c'
	BackArrow              = '\uf104'
	BackArrowDouble        = '\uf100'
	UpArrow                = '\uf106'
	UpArrowDouble          = '\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'
	EmulationPausedAtStart = '\uf049'
	EmulationPausedAtEnd   = '\uf050'
	MusicNote              = '\uf001'
	VolumeRising           = '\uf062'
	VolumeFalling          = '\uf063'
	Camera                 = '\uf030'
	Chip                   = '\uf2db'
	Unlocked               = '\uf13e'
	CPUKilled              = '\uf714'
	CoProcBug              = '\uf188'
	ExecutionNotes         = '\uf02b'
	Label                  = '\uf22d'
	CPUBug                 = '\uf188'
	Paw                    = '\uf1b0'
	NonCartExecution       = '\uf2db'
	CoProcExecution        = '\uf135'
	DisasmFocusCurrent     = '\uf530'
	Notes                  = '\uf02d'
	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'
	Bug                    = '\uf188'
	Cancel                 = '\uf057'
	TV                     = '\uf108'
	Geometry               = '\uf568'
	Inlined                = '\uf03c'
	SpeechBubble           = '\uf075'
	TimelineOffScreen      = '\uf0a5'
	TimelineJitter         = '\uf0de'
	TimelineComparison     = '\uf02e'
	TimelineComparisonLock = '\uf023'
	Developer              = '\uf0c3'
	Paperclip              = '\uf0c6'
	Directory              = '\uf07c'
	TVBrightness           = '\uf185'
	TVContrast             = '\uf042'
	TVSaturation           = '\uf0e9'
	TVHue                  = '\uf043'
	Elipsis                = '\uf141'
	VBLANKtop              = '\uf35b'
	VBLANKbottom           = '\uf358'
	VBLANKatari            = '\uf14a'
	MeterSegment           = '\uf04d'
	RenderTime             = '\uf06a'
	SelectedTick           = '\uf058'
)

Unicode points in FontAwesome for icons used in the application.

View Source
const (
	Stick      = '\ue000'
	Paddle     = '\ue001'
	Keypad     = '\ue002'
	Tape       = '\ue003'
	Wifi       = '\ue004'
	Savekey    = '\ue005'
	Gamepad    = '\ue006'
	AtariVox   = '\ue007'
	Keyportari = '\ue008'
)

Unicode points in AtariIcons for icons used in the application.

Variables

This section is empty.

Functions

This section is empty.

Types

type FontSpec added in v0.50.0

type FontSpec struct {
	Data []byte
	Min  rune
	Max  rune
}
var FontAwesome FontSpec = FontSpec{
	Data: fontAwesome,
	Min:  '\ue005',
	Max:  '\uf8ff',
}
var Gopher2600Icons FontSpec = FontSpec{
	Data: gopher2600Icons,
	Min:  '\ue000',
	Max:  '\ue008',
}
var Hack FontSpec = FontSpec{
	Data: hack,
	Min:  '\u0003',
	Max:  '\u1ef9',
}
var JetBrainsMono FontSpec = FontSpec{
	Data: jetBrainsMono,
	Min:  '\u0003',
	Max:  '\u00ff',
}
var JetBrainsMonoBold FontSpec = FontSpec{
	Data: jetBrainsMonoBold,
	Min:  '\u0003',
	Max:  '\u00ff',
}
var JetBrainsMonoBold_ReducedRange FontSpec = FontSpec{
	Data: jetBrainsMonoBold,
	Min:  '\u0020',
	Max:  '\u007e',
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL