Documentation ¶
Overview ¶
Package bitmapfont provides font.Face values with bitmap glyphs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Face is a font.Face of the bitmap font (12px regular). Face font.Face // FaceEA is a font.Face of the bitmap font (12px regular, prefer East Asian wide characters). FaceEA font.Face )
View Source
var ( // FaceSC is a font.Face of the bitmap font (12px regular, prefer simplified Chinese characters). FaceSC font.Face // FaceSCEA is a font.Face of the bitmap font (12px regular, prefer simplified Chinese characters and East Asia wide characters). FaceSCEA font.Face )
View Source
var ( // FaceTC is a font.Face of the bitmap font (12px regular, prefer traditional Chinese characters). FaceTC font.Face // FaceTCEA is a font.Face of the bitmap font (12px regular, prefer traditional Chinese characters and East Asia wide characters). FaceTCEA font.Face )
Functions ¶
func PresentationForms ¶
PresentationForms returns runes as presentation forms in order to render it easily.
PresentationForms mainly converts RTL texts into LTR glyphs for presentation. The result can be passed to e.g., golang.org/x/image.Drawer's DrawString. PresentationForms should work with texts whose directions are mixed with Unicode Bidi algorithm [1].
lang represents a language that is a hint to compose the representation forms. lang is not used in the implementation yet, but might be used in the future.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.