mirror of https://github.com/liamg/aminal.git
36 lines
1.1 KiB
Markdown
36 lines
1.1 KiB
Markdown
## Modern opengl text rendering
|
|
|
|
A simple package for rendering a string using modern opengl. Based on the bounding
|
|
box of a string, positioning of the string on screen prior to rendering is possible.
|
|
There do seem to be issues with the dimensions reported by freetype-go unfortunately.
|
|
|
|
- Unicode support.
|
|
- Dynamic text zooming along the z-axis.
|
|
- Dynamic text positioning within the orthographic projection space.
|
|
- Dynamic color changes.
|
|
|
|
Unicode support is based on the underlying truetype font being used (or bitmap).
|
|
|
|

|
|
|
|
### Install
|
|
|
|
* go get github.com/4ydx/gltext
|
|
|
|
### Example
|
|
|
|
* Provided using Japanese text.
|
|
|
|
### Dependencies
|
|
|
|
This packages uses [freetype-go](https://github.com/golang/freetype) which is licensed
|
|
under GPLv2 and FTL licenses. You can choose which one is a better fit for your
|
|
use case but FTL requires you to give some form of credit to Freetype.org
|
|
|
|
### License
|
|
|
|
Copyright 2012 The go-gl Authors. All rights reserved.
|
|
Use of this source code is governed by a BSD-style
|
|
license that can be found in the LICENSE file.
|
|
|