Commit e9d1872f authored by bzt's avatar bzt

Fixed formating

parent a9fc8710
......@@ -61,7 +61,7 @@ becames the first color in the palette). Then export as TGA. After that either o
editor, and change 00 01 00 at offset 0x12 to 00 00 00, or execute this from command line (replace
`mypixfont.tga` with your file):
```sh
dd conv=notrunc if=/dev/zero of=mypixfont.tga bs=3 seek=18
$ dd conv=notrunc if=/dev/zero of=mypixfont.tga bs=3 seek=18
```
Pixmaps fonts are also deduplicated the same way as bitmap fonts, and in addition they will be RLE
......
......@@ -32,8 +32,7 @@ transparency (alpha 0, background) and 255 means opaque (alpha 15, foreground).
for each index, A,R,G,B values in order. You can decode this information with the `SSFN_CMAP_TO_RGBA()` macro,
which receives three arguments: a cmap mode pixel, pointer to the color map and a foreground color.
Example Code
------------
__Example Code__
Here's a simple code on how to decode returned rasterized glyph on an SDL RGBA surface for example:
......
......@@ -36,6 +36,7 @@ SSFN can store everything that a TrueType or OpenType font can, except for:
- charset encodings,
- expressed ligatures and
- glyph alternatives.
As for character encoding, SSFN exclusively uses UNICODE (ISO-10464) by design. For
ligatures, I suggest to use the proper UNICODE code point for the ligature (which can
be a combined glyph), or a sequence of more code points where only the last glyph has
......@@ -250,7 +251,7 @@ Compression: TGA RLE (not that bad ratio and damn easy to decode with a minimal
with a header byte, which encodes N (= header & 0x7F + 1). If header bit 7 is set, then next byte should
be repeated N times, if not, then the next N bytes are all indeces.
NOTE: pixmaps are not splitted by the x axis, only on the x. A much much better compression ratio could
NOTE: pixmaps are not splitted on the x axis, only on the y. A much much better compression ratio could
be achieved with that.
| 1st byte | More bytes | Description |
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment