Subset a name-keyed CFF font without making it CID-keyed
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start by reading the crate's CFF subsetting implementation and its tests; the issue does not name specific files or entry points. Check how SID-keyed fonts are converted to CID-keyed fonts, then assess how a name-keyed subset could retain glyph SIDs, strings, and a custom encoding. Done means an option preserves name-keyed fonts and tests verify that kept glyph codes still resolve by name.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
subset converts SID-keyed CFF fonts to CID-keyed ones. That is right for new PDF output, but a PDF that already embeds a Type1C program for a simple font (/Subtype /Type1 with /FontFile3 /Subtype /Type1C) maps its one-byte codes to glyphs through glyph names (the font's /Encoding and /Differences, else the CFF's built-in encoding). A CID-keyed subset loses the names, so readers fall back to .notdef.
Would an option to keep a name-keyed font name-keyed (a charset with the kept glyphs' SIDs and the string INDEX, and a custom encoding for the kept codes) fit the crate's scope? It is the other half of subsetting fonts that existing PDFs embed; most CFF programs in PDFs are name-keyed Type1C. I can send a PR with tests if the shape is acceptable.
🤖 Generated with Claude Code
- Lenguaje dominante
- Rust
- Estrellas
- 61
- Forks
- 16
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de typst/subsetter
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
head table bounding box is not recalculated for variable font instancesPosiblemente ocupada @khaledhosny la tomó hace 16 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 56/100
-
Dificultad 3/5 Medio día Aptitud para principiantes 67/100
Todos los issues de typst/subsetter
Issues similares
-
Input: placeholder drawn in the text colour when the empty Input is focused but not yet editedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pierreaubert/gpui-toolkit#114 ·
Los mantenedores suelen responder en 1 día
-
BibLaTeX `type` keys like `phdthesis`, `mathesis`, `techreport` are printed raw instead of localizedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
remove the use of `forget`Abiertogood first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
-
compiler
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
HerringtonDarkholme/hd-lang#1853 ·
Los mantenedores suelen responder en 1 día
-
bug needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
pbakaus/impeccable#1462 ·
Los mantenedores suelen responder en 1 día