Documentation ¶
Overview ¶
Package bitmapfont offers a font.Face value of some bitmap fonts.
- [Baekmuk Gulim](https://kldp.net/baekmuk/) (Baekmuk License)
- [misc-fixed](https://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html) (Public Domain)
- [M+ Bitmap Font](https://mplus-fonts.osdn.jp/mplus-bitmap-fonts/) (M+ Bitmap Fonts License)
- Arabic glyphs by [@MansourSorosoro](https://twitter.com/MansourSorosoro) (Eternal Dream Arabization) (OFL-1.1)
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 )
Functions ¶
func PresentationForms ¶ added in v2.1.0
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 ¶
Click to show internal directories.
Click to hide internal directories.