Skip to content

ajstarks/go-info-displays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go for Information Displays

Introduction

The story of using Go to make Information Displays: "An interesting arrangement of text and graphics designed to inform". The story is conveyed through three Go packages: SVGo (generating SVG), OpenVG, (wrapper to the OpenVG library on the Raspberry Pi) and Deck (a package for presentations).

Colophon

This deck uses Fira Sans, Fira Mono, and Charter.

This command line to generates the deck:

$ ./mkdeck

The command can also make variations using Noto Sans, Noto Mono, Noto Serif or the Go fonts

$ ./mkdeck noto
$ ./mkdeck go

You can also generate the deck with this command using pdfdeck:

$ pdfdeck -pagesize 1920,1080 -sans FiraSans-Regular -mono FiraMono-Regular -serif Charter-Regular goinfo.xml

The fonts are stored in $DECKFONTS, generated from TrueType files with the makefont utility from the gofpdf package.

$ cd $DECKFONTS
$ makefont -embed /path/to/ttf-file