fonts

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: GPL-3.0, 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.

Index

Constants

View Source
const (
	Run           = '\uf04b'
	Halt          = '\uf04c'
	Back          = '\uf053'
	Disk          = '\uf0c7'
	Mouse         = '\uf8cc'
	GoingForward  = '\uf01e'
	Persist       = '\uf021'
	Breakpoint    = '\uf12a'
	AudioDisabled = '\uf00d'
	AudioEnabled  = '\uf028'
	ColorSwatch   = '\uf111'
)

Unicode points in FontAwesome for icons used in the application.

View Source
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.

View Source
const (
	Stick    = '\ue000'
	Paddle   = '\ue001'
	Keyboard = '\ue002'
)

Unicode points in AtariIcons for icons used in the application.

View Source
const (
	Gopher2600IconMin = '\ue000'
	Gopher2600IconMax = '\ue002'
)

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

View Source
var FontAwesome []byte
View Source
var Gopher2600Icons []byte

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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