GitXplorerGitXplorer
s

thorax_truetype

public
16 stars
5 forks
0 issues

Commits

List of commits on branch master.
Unverified
32f7350726bc082063f830a3b9145569c436f9f2

adding .clang-format

sspiderofmean committed 8 years ago
Unverified
c1ff3535fea598e2853c8c3f76de2c258d62b361

Adding README and license headers. Updating license to 2017.

sspiderofmean committed 8 years ago
Unverified
b5d8c05fa3b839a9bae99707a661f15fa9754c6f

Adding files.

sspiderofmean committed 8 years ago
Unverified
a2faaf39726240e134d96e2ffb07f3f87a824c82

Initial commit

sspiderofmean committed 9 years ago

README

The README file for this repository.

Thorax Truetype is a library for loading and rendering TrueType fonts. This project grew out of a pedagogical exercise to have an easy to understand TrueType loader. My desire to do so came from stb_truetype being difficult to understand due to a lack of C++ features or type punning (the address computations required to index into the truetype tables are pretty incomprehensible as inline C code) and the size of the opentype loader.

The loader consists of two files: thorax_truetype.h thorax_truetype.cpp

In addition to the font loader, this project contains a font rasterizer in the renderer folder. The rasterizer uses a novel coverage algorithm and is capable of generated nicely anti-aliased renderings.

The files in the renderer: build.h : interface for managing text scenes bvh.cpp : implementation of bounding volume hierarchy builders drawcontext.h : context interface for drawing text to a bitmap drawcontext.cpp : context implementation for drawing text to a bitmap types.h : a variety of helper datatypes

A more detailed description of the rasterizer will come later.