T E X / L A T E X

1 Introduction

When I touch  E X  , I feel very fun, but when I go deeper, it feels really complicated, and the font is hard to get started. There may be historical reasons. But there will be no easier. A mechanism has emerged? Just like the XFT2 on Linux now, throwing the fonts into one place, almost nothing, can be used directly. This is development. Maybe  E X is  not that simple, but understand some of it itself. The principle is very helpful for us to use it better. So I wrote this document, just some of my own exploration process and my own understanding, I hope that I can help you personally.

The most recent copy of this document is available on my homepage .

2 font

In a sense, fonts can be divided into two types, dot matrix fonts and outline fonts.

A dot matrix font represents a character as a rectangular grid of pixels, each of which can be represented by the light or darkness of the pixel. This method has some drawbacks. It simply means that the character is specific at a particular resolution. An example of size, it is difficult to change the size, shape and resolution, without significantly affecting the quality of the font.

Outline fonts mathematically represent a character as a series of straight lines, curves (usually bezier curves), and `hints’. When printing characters in an outline font, it must be `rasterized’ in real time. For a dot matrix. The defects inherent in many dot matrix fonts do not exist in outline fonts. Because outline fonts are mathematically represented, they can be drawn at any reasonable size. In smaller sizes, fonts The renderer is guided by `hint’ in the font.

 The PK, PXL, and GF files in E X are all dot matrix font formats.