2022-01-18 19:29:53 +00:00
|
|
|
{
|
|
|
|
|
"comment": [
|
|
|
|
|
"Config for use with main.go. Before making changes here, see config_editor.rb."
|
|
|
|
|
],
|
2022-01-22 19:23:06 +00:00
|
|
|
"loadermod": [
|
2025-02-17 10:24:39 +00:00
|
|
|
"../../../loader/src/fonts.rs"
|
2022-01-22 19:23:06 +00:00
|
|
|
],
|
|
|
|
|
"fontmap": [
|
2025-02-17 10:24:39 +00:00
|
|
|
"../src/fontmap.rs"
|
2022-01-22 19:23:06 +00:00
|
|
|
],
|
2022-01-18 19:29:53 +00:00
|
|
|
"glyphSets": [
|
|
|
|
|
{
|
|
|
|
|
"name": "Emoji",
|
|
|
|
|
"sprites": "src_data/basic_emoji.png",
|
|
|
|
|
"size": 16,
|
|
|
|
|
"cols": 30,
|
|
|
|
|
"gutter": 2,
|
|
|
|
|
"border": 2,
|
|
|
|
|
"legal": "src_data/basic_emoji_legal.txt",
|
|
|
|
|
"index": "src_data/basic_emoji.codepoints",
|
|
|
|
|
"indexType": "txt-row-major",
|
|
|
|
|
"glyphTrim": "CJK",
|
2025-02-17 10:24:39 +00:00
|
|
|
"rustout": "../src/fonts/emoji.rs",
|
|
|
|
|
"loaderout": "../../../loader/src/fonts/emoji.rs",
|
2024-01-27 18:11:09 +00:00
|
|
|
"small": true
|
2022-01-18 19:29:53 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "zh",
|
|
|
|
|
"sprites": "src_data/hanzi.png",
|
|
|
|
|
"size": 16,
|
|
|
|
|
"cols": 30,
|
|
|
|
|
"gutter": 2,
|
|
|
|
|
"border": 2,
|
|
|
|
|
"legal": "src_data/hanzi_legal.txt",
|
|
|
|
|
"index": "src_data/hanzi.codepoints",
|
|
|
|
|
"indexType": "txt-row-major",
|
|
|
|
|
"glyphTrim": "CJK",
|
2025-02-17 10:24:39 +00:00
|
|
|
"rustout": "../src/fonts/zh.rs",
|
|
|
|
|
"loaderout": "../../../loader/src/fonts/zh.rs",
|
2024-01-27 18:11:09 +00:00
|
|
|
"small": false
|
2022-01-18 19:29:53 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "ja",
|
|
|
|
|
"sprites": "src_data/Izumi16.png",
|
|
|
|
|
"size": 16,
|
|
|
|
|
"cols": 30,
|
|
|
|
|
"gutter": 2,
|
|
|
|
|
"border": 2,
|
|
|
|
|
"legal": "src_data/izumi_legal.txt",
|
|
|
|
|
"index": "src_data/Izumi16.codepoints",
|
|
|
|
|
"indexType": "txt-row-major",
|
|
|
|
|
"glyphTrim": "CJK",
|
2025-02-17 10:24:39 +00:00
|
|
|
"rustout": "../src/fonts/ja.rs",
|
|
|
|
|
"loaderout": "../../../loader/src/fonts/ja.rs",
|
2024-01-27 18:11:09 +00:00
|
|
|
"small": false
|
2022-01-18 19:29:53 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "kr",
|
|
|
|
|
"sprites": "src_data/neodgm.png",
|
|
|
|
|
"size": 16,
|
|
|
|
|
"cols": 30,
|
|
|
|
|
"gutter": 2,
|
|
|
|
|
"border": 2,
|
|
|
|
|
"legal": "src_data/neodgm_legal.txt",
|
|
|
|
|
"index": "src_data/neodgm.codepoints",
|
|
|
|
|
"indexType": "txt-row-major",
|
|
|
|
|
"glyphTrim": "CJK",
|
2025-02-17 10:24:39 +00:00
|
|
|
"rustout": "../src/fonts/kr.rs",
|
|
|
|
|
"loaderout": "../../../loader/src/fonts/kr.rs",
|
2024-01-27 18:11:09 +00:00
|
|
|
"small": false
|
2022-01-18 19:29:53 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Bold",
|
|
|
|
|
"sprites": "src_data/latin_bold.png",
|
|
|
|
|
"size": 15,
|
|
|
|
|
"cols": 16,
|
|
|
|
|
"gutter": 1,
|
|
|
|
|
"border": 1,
|
|
|
|
|
"legal": "src_data/chicago_legal.txt",
|
|
|
|
|
"index": "src_data/latin_index.json",
|
|
|
|
|
"indexType": "json-grid-coord",
|
|
|
|
|
"glyphTrim": "proportional",
|
2025-02-17 10:24:39 +00:00
|
|
|
"rustout": "../src/fonts/bold.rs",
|
|
|
|
|
"loaderout": "../../../loader/src/fonts/bold.rs",
|
2024-01-27 18:11:09 +00:00
|
|
|
"small": true
|
2022-01-18 19:29:53 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Mono",
|
|
|
|
|
"sprites": "src_data/latin_mono.png",
|
|
|
|
|
"size": 15,
|
|
|
|
|
"cols": 16,
|
|
|
|
|
"gutter": 1,
|
|
|
|
|
"border": 1,
|
|
|
|
|
"legal": "src_data/courier_legal.txt",
|
|
|
|
|
"index": "src_data/latin_index.json",
|
|
|
|
|
"indexType": "json-grid-coord",
|
|
|
|
|
"glyphTrim": "monospace",
|
2025-02-17 10:24:39 +00:00
|
|
|
"rustout": "../src/fonts/mono.rs",
|
|
|
|
|
"loaderout": "../../../loader/src/fonts/mono.rs",
|
2024-01-27 18:11:09 +00:00
|
|
|
"small": true
|
2022-01-18 19:29:53 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Regular",
|
|
|
|
|
"sprites": "src_data/latin_regular.png",
|
|
|
|
|
"size": 15,
|
|
|
|
|
"cols": 16,
|
|
|
|
|
"gutter": 1,
|
|
|
|
|
"border": 1,
|
|
|
|
|
"legal": "src_data/geneva_legal.txt",
|
|
|
|
|
"index": "src_data/latin_index.json",
|
|
|
|
|
"indexType": "json-grid-coord",
|
|
|
|
|
"glyphTrim": "proportional",
|
2025-02-17 10:24:39 +00:00
|
|
|
"rustout": "../src/fonts/regular.rs",
|
|
|
|
|
"loaderout": "../../../loader/src/fonts/regular.rs",
|
2024-01-28 19:31:29 +00:00
|
|
|
"small": true
|
2022-01-18 19:29:53 +00:00
|
|
|
},
|
add Tall font face and support for 32x32 bitmaps
Thanks to @samblenny for getting the ball rolling on this.
This commit adds a "tall" font face which is somewhere in betwee
the Regular size (12 pts) and 2x Small size (18 pts). This is
a compromise between text density and readability that has been
missing for some time from the UI.
The 32x32 glyph support is "hacked in", in that an extra flag
has been added to support this special case, rather than either
(a) making the library more generic (e.g. supporting 8x, 16x, 32x, 64x
glyphs) or (b) adding more metadata to the font libraries so that
the bitmap pattern is automatically associated with the font (right
now the parameters are set by hand in blitstr2/fonts.rs).
This is a violation of the "zero, one, many" principle in coding,
but I'm waiving that because (a) 64x glyphs don't make sense on
our system...you're not going to be creating posters and headlines
on this device (ha ha I say this today, tomorrow I will get a PR
for a poster editor app that absolutely needs 64x glyphs) and (b)
the font subsystem is, at least for now, a fairly mature and
well-tested code base so a minor futzing seems more appropriate
than ripping everything out.
The point at which things should be greatly refactored is when
we consider supporting right-to-left scripts or scripts that
require complex ligatures. But I think for now the system as
writ covers 80% of humanity's language needs acceptably
(but not perfectly).
2023-07-05 04:43:44 +00:00
|
|
|
{
|
|
|
|
|
"name": "Tall",
|
|
|
|
|
"sprites": "src_data/latin_tall.png",
|
|
|
|
|
"size": 19,
|
|
|
|
|
"cols": 30,
|
|
|
|
|
"gutter": 1,
|
|
|
|
|
"border": 1,
|
|
|
|
|
"legal": "src_data/helvetica_legal.txt",
|
|
|
|
|
"index": "src_data/latin_index.json",
|
|
|
|
|
"indexType": "json-grid-coord",
|
|
|
|
|
"glyphTrim": "proportional",
|
2025-02-17 10:24:39 +00:00
|
|
|
"rustout": "../src/fonts/tall.rs",
|
|
|
|
|
"loaderout": "../../../loader/src/fonts/tall.rs",
|
2024-01-27 18:11:09 +00:00
|
|
|
"small": true
|
add Tall font face and support for 32x32 bitmaps
Thanks to @samblenny for getting the ball rolling on this.
This commit adds a "tall" font face which is somewhere in betwee
the Regular size (12 pts) and 2x Small size (18 pts). This is
a compromise between text density and readability that has been
missing for some time from the UI.
The 32x32 glyph support is "hacked in", in that an extra flag
has been added to support this special case, rather than either
(a) making the library more generic (e.g. supporting 8x, 16x, 32x, 64x
glyphs) or (b) adding more metadata to the font libraries so that
the bitmap pattern is automatically associated with the font (right
now the parameters are set by hand in blitstr2/fonts.rs).
This is a violation of the "zero, one, many" principle in coding,
but I'm waiving that because (a) 64x glyphs don't make sense on
our system...you're not going to be creating posters and headlines
on this device (ha ha I say this today, tomorrow I will get a PR
for a poster editor app that absolutely needs 64x glyphs) and (b)
the font subsystem is, at least for now, a fairly mature and
well-tested code base so a minor futzing seems more appropriate
than ripping everything out.
The point at which things should be greatly refactored is when
we consider supporting right-to-left scripts or scripts that
require complex ligatures. But I think for now the system as
writ covers 80% of humanity's language needs acceptably
(but not perfectly).
2023-07-05 04:43:44 +00:00
|
|
|
},
|
2022-01-18 19:29:53 +00:00
|
|
|
{
|
|
|
|
|
"name": "Small",
|
|
|
|
|
"sprites": "src_data/latin_small.png",
|
|
|
|
|
"size": 12,
|
|
|
|
|
"cols": 16,
|
|
|
|
|
"gutter": 1,
|
|
|
|
|
"border": 1,
|
|
|
|
|
"legal": "src_data/geneva_legal.txt",
|
|
|
|
|
"index": "src_data/latin_index.json",
|
|
|
|
|
"indexType": "json-grid-coord",
|
|
|
|
|
"glyphTrim": "proportional",
|
2025-02-17 10:24:39 +00:00
|
|
|
"rustout": "../src/fonts/small.rs",
|
|
|
|
|
"loaderout": "../../../loader/src/fonts/small.rs",
|
2024-01-28 19:31:29 +00:00
|
|
|
"small": true
|
2022-01-18 19:29:53 +00:00
|
|
|
}
|
|
|
|
|
]
|
2024-01-27 18:11:09 +00:00
|
|
|
}
|