Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
scalable-font
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bzt
scalable-font
Commits
e9d1872f
Commit
e9d1872f
authored
May 28, 2019
by
bzt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed formating
parent
a9fc8710
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
docs/ecosystem.md
docs/ecosystem.md
+1
-1
docs/modes.md
docs/modes.md
+1
-2
docs/sfn_format.md
docs/sfn_format.md
+2
-1
No files found.
docs/ecosystem.md
View file @
e9d1872f
...
...
@@ -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
...
...
docs/modes.md
View file @
e9d1872f
...
...
@@ -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:
...
...
docs/sfn_format.md
View file @
e9d1872f
...
...
@@ -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 |
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment