feat(vector-text): afegeix el glyph / al charset

El progres "i/n" del modal de redefinicio (ex. 1/4) sortia com a "14"
perque VectorText no tenia shape per a la barra i emetia un warning.
Afegim font/char_slash.shp (diagonal de baix-esquerra a dalt-dreta dins
de la caixa 20x40) i el registrem al loader i al getShapeFilename.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-24 20:58:52 +02:00
parent 64a6599e81
commit 120c5502fd
3 changed files with 13 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
# char_slash.shp - Símbol / (barra)
# Dimensions: 20×40 (blocky display)
name: char_slash
scale: 1.0
center: 10, 20
# Línia diagonal de baix-esquerra a dalt-dreta
line: 4,36 16,4
+3 -1
View File
@@ -47,7 +47,7 @@ namespace Graphics {
}
// Cargar símbolos
const std::string SYMBOLS[] = {".", ",", "-", ":", "!", "?"};
const std::string SYMBOLS[] = {".", ",", "-", ":", "!", "?", "/"};
for (const auto& sym : SYMBOLS) {
char c = sym[0];
std::string filename = getShapeFilename(c);
@@ -164,6 +164,8 @@ namespace Graphics {
return "font/char_exclamation.shp";
case '?':
return "font/char_question.shp";
case '/':
return "font/char_slash.shp";
case ' ':
return ""; // Espai es maneja sin load shape
+1 -1
View File
@@ -21,7 +21,7 @@ namespace Graphics {
// Renderizar string completo
// - text: cadena a renderizar (soporta: A-Z, a-z, 0-9, '.', ',', '-', ':',
// '!', '?', ' ')
// '!', '?', '/', ' ')
// - position: posición inicial (esquina superior izquierda)
// - scale: factor de scale (1.0 = 20×40 px por carácter)
// - spacing: espacio entre caracteres en píxeles (a scale 1.0)