V10.8.13: S and M without the glyphs no text draws (" $ \ ^ as a space, (c) gone: 361 B), tests/glyph_cover_test.py in CI (every string's characters in both faces); the key banners momentary (the owner): a key physically held, 0.6 s after it is let go, never a latch's

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
Claude committed 2026-11-23 01:27:57 +00:00
1 parent 9c3e9935a5
commit eb45d76444
9 files changed
+2221 -2146

No files matched your search

+1
View File
@@ -106,6 +106,7 @@ jobs:
run: |
set -euo pipefail
python3 tests/font_pack_test.py
python3 tests/glyph_cover_test.py
cc -O1 -w -Ibuild/gen -Ifirmware/src tests/text_ref_test.c -lm -o build/song-check/text-ref
build/song-check/text-ref | tee build/song-check/text-ref.log
cc -O1 -g -w -Wno-implicit-function-declaration -fsanitize=address,bounds -Ibuild/gen -Ifirmware/src tests/track_generator_test.c -lm -o build/song-check/track-gen
+1 -1
View File
@@ -49,7 +49,7 @@
#define FELUCCA_ID "FM-1_900" /* package identity (build.py: the .fwsc marker string) */
#endif
#ifndef FELUCCA_VERSION
#define FELUCCA_VERSION "V10.8.12" /* (2026-11-21) V10.7.77: GEN (the owner): DUBSTEP's wobble its rate moving (the wobble bass's LFO RATE automated half a bar each: 1/4 1/8 1/8T 1/16); CUMBIA villera one throw in two (a villera 'teclado': 92 .. 100, minor, the keyboard's lead up front). V10.7.76: DRUM-X MATH a wavetable (the owner: "harsh"): its t whole cycles of the hit's time (one shape evolving), interpolated between its samples; SOUND 3 draws it (four moments, cold to hot); hints trimmed (flash). V10.7.75: DRUM-X MATH (the owner): its RATIO (1/4 .. 16, 24, the inharmonic between) on SOUND 3's KNOB 4, COLOR read MOD AMT; MATH's RESTART the scope (its ramps' picture gone), ten more hints out (flash). V10.7.74: DRUM-X MATH (the owner): a sound's WAVE past BELL a MATH formula F01..F48 as its FM's modulator (COLOR its index; its t the hit's time, a sample in eight), kept with the project ('D' 'F'). V10.7.73: SCL > HARMONY its own tab (KEY CHORD HARMONY SCENE); the defaults once (the owner): LARGE off, CLICK REC, COUNT-IN 1 BAR. V10.7.72: GEN (the owner): MATH WEST STRING more (the archetypes' third options theirs, 25 %; a bass's one time in ten); GLO > GLOBAL the scope, its bars gone. V10.7.71: SCL > HARMONY's picture (the owner): the progression's chords as roman numerals in the key ("-" minor, "o" diminished), each its root's colour, the one playing lit; the obvious knobs' hints out (flash). V10.7.70: FX > PUNCH IN: KNOB 4 M4 (its ERASE PUNCH LANE's only), so OCT+ always the punch-in editor (an ERASE picked took it). V10.7.69: MATH FLOAT MORPH (the owner): ALGO B where CHIP was, MORPH A -> B where BEND was (between the ends B a sample in eight, interpolated: +12.5 % CPU); MATH's formulas (lofi_float, lofi_byte) their 14 divisions by a constant as multiplies (JIANT BYTE 0.16's build pass, tools/build.py const_divs: exact, less CPU a sample); the MACRO layer's dead branches out (flash). V10.7.68: EUCLID MODES > ROLE (MELODY CHORDS BASS ARP, was CHORD) on the harmony the other melodic tracks play, bar by bar (four bars when it changes), else SCL's key; a recorded melody EUCLID takes: its notes as they were; LFO / FX dice leftovers out (flash). V10.7.67: GEN and EUCLID MUTATE fuse two seeds (the owner: never one as it is; the second far from the first), A+B in the name; FX + OCT+ opens the punch-in editor again (as OCT+ on FX > PUNCH IN). V10.7.66: SCL > HARMONY (PROG LENGTH EVOLVE SKIP: every melodic sequence follows a progression); GEN 8 progressions more (neo-soul, jazz, IDM, progressive); EUCLID's melody CONTOUR RANGE MOTIF CHORD; macros FX > PUNCH IN's only (LFO's layer, HOME > ROUTES gone, MACROS in FX), GLO's layer says G4 UNDO; the PUNCH-IN EDITOR redone (the owner): a key WHAT (an effect, or PARAM: M1..M4, CUT PITCH TIMBRE VOLUME PAN DIST CHORUS DELAY REVERB VIBRATO on every track), HOW (an effect HOLD LATCH QUANT; PARAM HOLD RAMP UP RAMP DN SINE STUTTER S&H), AMOUNT (-100..+100 %; an effect its TARGET), TIME (1/16 .. 8 BARS); two slots A B; FX > PUNCH IN its knobs M1..M4 (PUNCH LANE: LEN RES); the layers MAP only (KNOBS STATE gone, ALGORITHM nothing held), the FX cards "M1 CUT"; FX + SELECT the FX pages (its dice gone). GENE while it plays waits for the bar to end (Hollusion); GENE 4: KEY NEW / KEEP (the first melodic track's key and mode kept), ENTRY ALL / BUILD (the new piece in a track a bar, the kit first); the old DIGITAL / NOISE / retired engines' conversions out (flash), the songs 7-8 notice out; voices past V10.6c's budget: tails first, FM6's quarter rate gone. V10.7.65: the PUNCH-IN EDITOR (the owner): OCT+ on FX > PUNCH IN opens it (the FX layer locked open; an ERASE picked on KNOB 4: OCT+ does it), DICE gone; the COMB / COMB- cut-off moved by the LFO and the ENV as the other filters; a key held and KNOB 1..4 its EFFECT (any, MOD a macro moved) TARGET (ALL SYN DRM T1..T6; MOD M1..M4) AMOUNT (MOD 1 BEAT .. 4 BARS) MODE (HOLD LATCH QUANT; MOD RAMP UP / DOWN SINE S&H), the mode said in the header; SELECT a slot (four, in the settings), OCT+ saves and plays it, OCT- leaves. V10.7.64: SCENE's LEADER PRESS (a key's note on every live track at once, each its own sound); SCENE on the live tracks only (it opened on T6, asleep with four: nothing heard, nothing drawn), every role with the key: a kit's DRUM loops its beat while a key is held, stopped too; the engines as the kit (the owner): FILTER TYPE CUT RES IMAGE (DIST the SENDS' only), PLAY POLY GLIDE UNISON VEL (the plain MORE gone, GL MODE off the panel), GAIN 0..+12 dB clean where a DRIVE was (ANALOG's MORE, WHEEL's COLOR; their DRIVE off the panel, kept), saved ('T' 'G'); FUGA's subject and answer on live tracks (the continuo after: with four tracks it began unheard); DUBSTEP's bass the wobble (a resonant low-pass on an LFO on the 1/8s, kept: not slowed to a breath); DRUM-X KIT's SNAP (was ATTACK), SOUND 3's SHORT (a filter's quick noise, was SNAP). V10.7.63: GENE: DUBSTEP SHOEGAZE METALCORE, each genre its FX STYLE (the drive where it belongLine truncated
#define FELUCCA_VERSION "V10.8.13" /* (2026-11-21) V10.7.77: GEN (the owner): DUBSTEP's wobble its rate moving (the wobble bass's LFO RATE automated half a bar each: 1/4 1/8 1/8T 1/16); CUMBIA villera one throw in two (a villera 'teclado': 92 .. 100, minor, the keyboard's lead up front). V10.7.76: DRUM-X MATH a wavetable (the owner: "harsh"): its t whole cycles of the hit's time (one shape evolving), interpolated between its samples; SOUND 3 draws it (four moments, cold to hot); hints trimmed (flash). V10.7.75: DRUM-X MATH (the owner): its RATIO (1/4 .. 16, 24, the inharmonic between) on SOUND 3's KNOB 4, COLOR read MOD AMT; MATH's RESTART the scope (its ramps' picture gone), ten more hints out (flash). V10.7.74: DRUM-X MATH (the owner): a sound's WAVE past BELL a MATH formula F01..F48 as its FM's modulator (COLOR its index; its t the hit's time, a sample in eight), kept with the project ('D' 'F'). V10.7.73: SCL > HARMONY its own tab (KEY CHORD HARMONY SCENE); the defaults once (the owner): LARGE off, CLICK REC, COUNT-IN 1 BAR. V10.7.72: GEN (the owner): MATH WEST STRING more (the archetypes' third options theirs, 25 %; a bass's one time in ten); GLO > GLOBAL the scope, its bars gone. V10.7.71: SCL > HARMONY's picture (the owner): the progression's chords as roman numerals in the key ("-" minor, "o" diminished), each its root's colour, the one playing lit; the obvious knobs' hints out (flash). V10.7.70: FX > PUNCH IN: KNOB 4 M4 (its ERASE PUNCH LANE's only), so OCT+ always the punch-in editor (an ERASE picked took it). V10.7.69: MATH FLOAT MORPH (the owner): ALGO B where CHIP was, MORPH A -> B where BEND was (between the ends B a sample in eight, interpolated: +12.5 % CPU); MATH's formulas (lofi_float, lofi_byte) their 14 divisions by a constant as multiplies (JIANT BYTE 0.16's build pass, tools/build.py const_divs: exact, less CPU a sample); the MACRO layer's dead branches out (flash). V10.7.68: EUCLID MODES > ROLE (MELODY CHORDS BASS ARP, was CHORD) on the harmony the other melodic tracks play, bar by bar (four bars when it changes), else SCL's key; a recorded melody EUCLID takes: its notes as they were; LFO / FX dice leftovers out (flash). V10.7.67: GEN and EUCLID MUTATE fuse two seeds (the owner: never one as it is; the second far from the first), A+B in the name; FX + OCT+ opens the punch-in editor again (as OCT+ on FX > PUNCH IN). V10.7.66: SCL > HARMONY (PROG LENGTH EVOLVE SKIP: every melodic sequence follows a progression); GEN 8 progressions more (neo-soul, jazz, IDM, progressive); EUCLID's melody CONTOUR RANGE MOTIF CHORD; macros FX > PUNCH IN's only (LFO's layer, HOME > ROUTES gone, MACROS in FX), GLO's layer says G4 UNDO; the PUNCH-IN EDITOR redone (the owner): a key WHAT (an effect, or PARAM: M1..M4, CUT PITCH TIMBRE VOLUME PAN DIST CHORUS DELAY REVERB VIBRATO on every track), HOW (an effect HOLD LATCH QUANT; PARAM HOLD RAMP UP RAMP DN SINE STUTTER S&H), AMOUNT (-100..+100 %; an effect its TARGET), TIME (1/16 .. 8 BARS); two slots A B; FX > PUNCH IN its knobs M1..M4 (PUNCH LANE: LEN RES); the layers MAP only (KNOBS STATE gone, ALGORITHM nothing held), the FX cards "M1 CUT"; FX + SELECT the FX pages (its dice gone). GENE while it plays waits for the bar to end (Hollusion); GENE 4: KEY NEW / KEEP (the first melodic track's key and mode kept), ENTRY ALL / BUILD (the new piece in a track a bar, the kit first); the old DIGITAL / NOISE / retired engines' conversions out (flash), the songs 7-8 notice out; voices past V10.6c's budget: tails first, FM6's quarter rate gone. V10.7.65: the PUNCH-IN EDITOR (the owner): OCT+ on FX > PUNCH IN opens it (the FX layer locked open; an ERASE picked on KNOB 4: OCT+ does it), DICE gone; the COMB / COMB- cut-off moved by the LFO and the ENV as the other filters; a key held and KNOB 1..4 its EFFECT (any, MOD a macro moved) TARGET (ALL SYN DRM T1..T6; MOD M1..M4) AMOUNT (MOD 1 BEAT .. 4 BARS) MODE (HOLD LATCH QUANT; MOD RAMP UP / DOWN SINE S&H), the mode said in the header; SELECT a slot (four, in the settings), OCT+ saves and plays it, OCT- leaves. V10.7.64: SCENE's LEADER PRESS (a key's note on every live track at once, each its own sound); SCENE on the live tracks only (it opened on T6, asleep with four: nothing heard, nothing drawn), every role with the key: a kit's DRUM loops its beat while a key is held, stopped too; the engines as the kit (the owner): FILTER TYPE CUT RES IMAGE (DIST the SENDS' only), PLAY POLY GLIDE UNISON VEL (the plain MORE gone, GL MODE off the panel), GAIN 0..+12 dB clean where a DRIVE was (ANALOG's MORE, WHEEL's COLOR; their DRIVE off the panel, kept), saved ('T' 'G'); FUGA's subject and answer on live tracks (the continuo after: with four tracks it began unheard); DUBSTEP's bass the wobble (a resonant low-pass on an LFO on the 1/8s, kept: not slowed to a breath); DRUM-X KIT's SNAP (was ATTACK), SOUND 3's SHORT (a filter's quick noise, was SNAP). V10.7.63: GENE: DUBSTEP SHOEGAZE METALCORE, each genre its FX STYLE (the drive where it belongLine truncated
#endif
#if FELUCCA_OTA && !FELUCCA_FLASH
#error "FELUCCA_OTA needs FELUCCA_FLASH"
+16 -3
View File
@@ -1146,6 +1146,19 @@ static __attribute__((noinline)) void hold_banner(const char *nm, uint32_t k, in
}
static uint32_t sfx_k; /* (V10.8.9) the key sfx_key is (sfx_keys) */
static uint8_t fx_hk; /* (V10.8.9) the FX layer's key held + 1 (ui_layer.c draw_layer) */
/* (V10.8.13, the owner) the banner momentary: a key physically held (not a latch) sets it each frame; it stays 0.6 s
* after the key is let go, its last words, then goes (bn_pg: 1 STEP FX, 2 the FX layer's punch-ins) */
static char bn_nm[13];
static uint8_t bn_k, bn_pg;
static uint32_t bn_t;
static void bn_set(const char *nm, uint32_t k, uint32_t pg)
{
str_cpy(bn_nm, nm, sizeof bn_nm);
bn_k = (uint8_t)k;
bn_pg = (uint8_t)pg;
bn_t = fm1_ms | 1u;
}
static uint32_t bn_on(uint32_t pg) { return bn_t && bn_pg == pg && (fm1_ms | 1u) - bn_t < 600u ? bn_k + 1u : 0u; }
/* the page's marks over the roll / the grid (0.9.17's): PLAYHEADS FUGUE's heads on the grid too (the roll draws them on
* every page); COMP the steps with the cursor's component a bar on top ACCENT, another component a thin MID one;
* AUTOMATION / AUTO LIST the records at the foot (a lock ACCENT, automation TEXT; AUTO LIST the row picked framed THEME);
@@ -1172,8 +1185,8 @@ static __attribute__((noinline)) void seq_overlay(const track_t *t, const page_t
k = ui.cursor % NSTEP;
if (mine == CA_RAMP && k >= base && k < base + 16u && bt_hw_seg())
ramp_draw_bt(t, dr, top, k - base);
if (sfx_key < 16u) /* (V10.8.8) the component held, large (V10.8.9) */
hold_banner(SFX_NM[sfx_key], sfx_k, rec_on(t));
if (bn_on(1)) /* (V10.8.8) the component held, large (V10.8.9; V10.8.13: 0.6 s on) */
hold_banner(bn_nm, bn_k, rec_on(t));
else
cv_text(100, 2, &AF_X, "HOLD A KEY: STEP FX", T_MID);
} else if (pg->graph == GR_MOTION || pg->graph == GR_EVENTS) {
@@ -1489,7 +1502,7 @@ static __attribute__((noinline)) uint32_t graph_signature(void)
if (pg->graph == GR_COMP) { /* (0.6.39) the steps, their components, the arpeggio and the loop */
const step_t *cs = &t->step[ui.cursor];
uint32_t ph = song.playing ? seq_src(t, t->seq_idx) : 0xFFFFu;
h = (h ^ (steps_hash(t) + ph * 31u + ui.cursor * 7919u + ui.bank * 613u + sfx_key * 65537u + (uint32_t)rec_on(t) * 101u)) * 16777619u;
h = (h ^ (steps_hash(t) + ph * 31u + ui.cursor * 7919u + ui.bank * 613u + bn_on(1) * 65537u + (uint32_t)rec_on(t) * 101u)) * 16777619u;
h = (h ^ ((uint32_t)t->p[P_CLEN] << 8 | (song.playing ? t->cpos : 0xFFu))) * 16777619u; /* (0.6.47) C.LEN */
for (i = ui.bank * 16u; i < ui.bank * 16u + 16u && i < NSTEP; i++)
h = (h ^ ((uint32_t)t->step[i].comp << 8 | t->step[i].carg | (uint32_t)t->step[i].probability << 16 |
+2
View File
@@ -677,6 +677,8 @@ static void sfx_keys(void)
w = key_place(k), sfx_k = k;
if (w != sfx_key && w < 16u)
ui_message(SFX_NM[w]);
if (w < 16u)
bn_set(SFX_NM[w], sfx_k, 1); /* (V10.8.13: the banner, 0.6 s after the key) */
sfx_key = (uint8_t)w;
hc_val = w < 16u ? SFX_KV[w] : 0u;
hc_trk = (uint8_t)song.sel;
+8 -6
View File
@@ -1615,12 +1615,17 @@ static __attribute__((noinline)) void draw_layer(void)
for (fx_hk = 0, k = 0; k < 27u; k++) /* (V10.8.9) the FX layer's key held (+ 1), the highest */
if ((kb_layer & fm1_in.notes) >> k & 1u)
fx_hk = (uint8_t)(k + 1u);
if (l == LAYER_FX && !pk.edit && fx_hk) { /* (V10.8.13) physically held: the banner's words, its time */
char nm[12];
ly_keyname(LAYER_FX, key_black(fx_hk - 1u), key_place(fx_hk - 1u), nm);
if (nm[0]) bn_set(nm, fx_hk - 1u, 2);
}
layer_cards(l);
if (l == LAYER_FX)
{
uint32_t s;
sig += (perf_kill ? 0u : perf_held | perf_latched) * 31u + perf_latch_on * 11u + perf_act * 131u + perf_avail() * 7u;
sig += fx_hk * 524287u + (uint32_t)pfx_rec_ok() * 29u + pk.edit * 3u + pk.ekey * 4099u + (kb_layer != 0u) * 65537u + pk.mod * 17u + pk.pkey * 257u; /* (V10.8.5: the
sig += bn_on(2) * 524287u + (uint32_t)pfx_rec_ok() * 29u + pk.edit * 3u + pk.ekey * 4099u + (kb_layer != 0u) * 65537u + pk.mod * 17u + pk.pkey * 257u; /* (V10.8.5: the
* editor's key lit while pressed, its keys' names as set) */
for (s = 0; pk.edit && s < PK_KEYS; s++) sig = (sig ^ pk.we[s] ^ (uint32_t)pk.wo[s] << 8) * 16777619u;
}
@@ -1650,11 +1655,8 @@ static __attribute__((noinline)) void draw_layer(void)
cv_bg = T_SURF;
if (l == LAYER_FX && !pk.edit) ly_fx_cells(); /* (V10.7.77, the owner) FX: the effects as cells, as before 0.8.9 */
else ly_piano(l); /* MAP: the keyboard (V10.7.66: KNOBS / STATE gone) */
if (l == LAYER_FX && !pk.edit && fx_hk) { /* (V10.8.9, the owner) the punch-in held, large */
char nm[12];
ly_keyname(LAYER_FX, key_black(fx_hk - 1u), key_place(fx_hk - 1u), nm);
if (nm[0]) hold_banner(nm, fx_hk - 1u, pfx_rec_ok());
}
if (l == LAYER_FX && !pk.edit && bn_on(2)) /* (V10.8.9, the owner) the punch-in held, large (V10.8.13: */
hold_banner(bn_nm, bn_k, pfx_rec_ok()); /* 0.6 s after the key, never a latch's) */
cv_blit(0, graph_y());
}
draw_tabs(); /* (0.8.5: MAP . KNOBS . STATE, the breadcrumb) */
+41
View File
@@ -0,0 +1,41 @@
# Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant). All rights reserved.
"""(V10.8.13) every character a string of the firmware draws is a glyph of S and M (AF_X is S): none blank (BLANK), none
missing (gfx.c draws '?' for it). Scans the string and character literals of firmware/src and build/gen (comments out),
lowercase as the UI folds it to capitals (gfx.c fold), and the Latin-1 codes written as numbers"""
import glob, re, sys
sys.path.insert(0, "tools")
import gen_aa_font as g
def literals():
out = []
gen = [h for h in glob.glob("build/gen/*.h") if not h.endswith("felucca_lyrics.h")] # (the lyrics: coded bytes)
for f in glob.glob("firmware/src/*.[ch]") + gen:
s = open(f, encoding="latin-1").read()
s = re.sub(r"/\*.*?\*/", "", s, flags=re.S)
s = re.sub(r"//[^\n]*", "", s)
for m in re.finditer(r'"((?:[^"\\\n]|\\.)*)"', s):
t = re.sub(r"\\x([0-9A-Fa-f]{2})", lambda q: chr(int(q.group(1), 16)), m.group(1))
t = re.sub(r"\\(.)", lambda q: {"n": "\n", "t": "\t", "0": "\0", "\\": "\\", '"': '"'}.get(q.group(1), q.group(1)), t)
out.append((f, t))
return out
# not text: '|' a card's label / hint separator (ui.col), '~' the singer's phoneme marks (sing_ext.c), \xFD..\xFF gen.c's
# byte strings (markers)
NOT_TEXT = set("|~\xfd\xfe\xff")
face = {c for c in map(chr, range(32, 96))} | {chr(c) for c in g.EXTRAS} | {"\x85"}
bad = []
for name in ("S", "M"):
have = face - set(g.BLANK[name])
for f, t in literals():
for c in t:
c = c.upper() if "a" <= c <= "z" else c
if c < " " or c in have or c in NOT_TEXT:
continue
bad.append((name, f, t, c))
seen = set()
for name, f, t, c in bad:
if (name, c) not in seen:
seen.add((name, c))
print("glyph-cover: %s lacks %r, drawn by %s: %r" % (name, c, f, t[:40]))
print("glyph-cover: %s" % ("all covered" if not bad else "%d missing" % len(seen)))
sys.exit(1 if bad else 0)
+12 -4
View File
@@ -95,8 +95,10 @@ int main(void)
ok = str_eq(SFX_NM[sfx_key], "STUTTER /2") && sfx_k == wkey(1) && key_place(sfx_k) + 1u == 2u &&
spx(120, (int32_t)by) == T_RAISE && rec_on(TSEL);
let_go(1); frame(); frame();
ok &= sfx_key == 16u && spx(120, (int32_t)by) != T_RAISE;
bad += check("STEP FX banner: STUT /2, KEY 2, REC while held; gone when let go", ok);
ok &= sfx_key == 16u && spx(120, (int32_t)by) == T_RAISE; /* (V10.8.13: 0.6 s more) */
frames(700);
ok &= spx(120, (int32_t)by) != T_RAISE;
bad += check("STEP FX banner: STUTTER /2, KEY 2, REC while held; 0.6 s after it is let go, then gone", ok);
}
song.rec = 0;
{ /* (V10.8.9) the FX layer's punch-in held: its banner */
@@ -108,9 +110,15 @@ int main(void)
ly_keyname(LAYER_FX, 0, 2, nm);
ok &= str_eq(nm, "RPT 1/32") && spx(120, (int32_t)by) == T_RAISE;
key_up(white(2)); frame(); frame();
ok &= !fx_hk && spx(120, (int32_t)by) != T_RAISE;
ok &= !fx_hk && spx(120, (int32_t)by) == T_RAISE; /* (V10.8.13: 0.6 s more) */
frames(700);
ok &= spx(120, (int32_t)by) != T_RAISE;
key_down(white(2)); frame(); frame(); /* latched: the key let go, the effect on */
key_up(white(2)); perf_latched |= PF_BIT(PF_R32); frame(); frames(700);
ok &= spx(120, (int32_t)by) != T_RAISE;
perf_latched = 0;
btn_up(B_FX); frame();
bad += check("FX layer banner: the punch-in held (RPT 1/32) large with its key; gone when let go", ok);
bad += check("FX layer banner: the punch-in held (RPT 1/32) large with its key; 0.6 s after, then gone, latched too", ok);
}
{ /* (V10.8.9) the song mode's hints: one a state, each fits the line; HELP OFF: none */
const char *h[6];
+2133 -2131
View File
File diff suppressed because it is too large. Load diff
+7 -1
View File
@@ -40,7 +40,11 @@ import aa_raster as ar # noqa: E402
FONTS = Path(__file__).resolve().parents[1] / "fonts"
LOCAL_INTER = os.path.expanduser("~/Library/Fonts/Inter.ttc") # 4.001: 0 Regular, 10 Medium, 12 SemiBold
EXTRAS = [0xA9, 0xB0, 0xB7, 0xC4, 0xD6, 0xDC, 0xE4, 0xF6, 0xFC, 0x2026] # (c) deg . A: O: U: a: o: u: (Latin-1), ...
EXTRAS = [0xB0, 0xB7, 0xC4, 0xD6, 0xDC, 0xE4, 0xF6, 0xFC, 0x2026] # deg . A: O: U: a: o: u: (Latin-1), ... (V10.8.13: (c) gone,
# no text draws it; a name with it: '?', gfx.c glyph)
# (V10.8.13, the owner) S and M (AF_X is S): these no text of the firmware draws (tests/glyph_cover_test.py); their places in
# the range kept (its index is the character's), drawn as a space: a name from the app or a patch with one stays in its layout
BLANK = {"S": '"$\\^', "M": '"$\\^'}
CODE = {0x2026: 0x85} # characters outside Latin-1 -> their one-byte code in the firmware
PHASES, PHASES_L = 1, 1 # horizontal phases per glyph (aa_raster.raster_font): S M, L. (JIANT 0.9.9-snd4, flash)
# S M 2, were 4: 12.9 KB less of the glyph tables; a glyph within 1/4 px of its
@@ -199,6 +203,8 @@ def emit(face, tracking, gamma, kern_min):
r["h"] -= rise
r["glyphs"] = {ch: (a, [(bx, by - rise if bw else by, bw, bh, b) for bx, by, bw, bh, b in ph])
for ch, (a, ph) in r["glyphs"].items()}
for ch in BLANK.get(name, ""): # (V10.8.13) as the space: no ink, its advance
r["glyphs"][ch] = r["glyphs"][" "]
data, table, lines = bytearray(), [], []
for ch in chars:
adv16, ph = r["glyphs"][ch]