Add sans family and true small caps
This commit is contained in:
1 parent
e44d4c8669
commit
337eaa1778
15 files changed
+628
-122
No files matched your search
+7
-18
@@ -3,21 +3,10 @@
|
||||
This file lists the concrete implementation plans for the foundational items that
|
||||
are still missing. Each item names the files/functions to touch.
|
||||
|
||||
Completed: paragraph indentation (`\parindent`) and `\hfill`/`\hfil` (see
|
||||
`docs/STATUS.md`).
|
||||
Completed: paragraph indentation (`\parindent`) and `\hfill`/`\hfil`; sans
|
||||
family and true scaled small caps (see `docs/STATUS.md`).
|
||||
|
||||
## 1. Sans family (`\sffamily`)
|
||||
|
||||
- Load Liberation Sans in `latin_dir` alongside serif/mono (see
|
||||
`font_inputs`/`register_box_font_family` in `src/rust_typeset/pdf.rs`).
|
||||
- Add `sans: bool` to `Run` and to the style map key; `paragraph_font_id`
|
||||
selects the sans family when set.
|
||||
- Thread a `sans_family` through `TextLine`/`TextLine::new` and the SVG
|
||||
font-family choice (`TexrraSans`), and add a `@font-face` in the preview.
|
||||
- `\sffamily`/`\textsf{...}` become declaration primitives like
|
||||
`\ttfamily`.
|
||||
|
||||
## 2. Inline framed boxes / `\raisebox`
|
||||
## 1. Inline framed boxes / `\raisebox`
|
||||
|
||||
- Add `y_offset: Mm` to `PositionedSpan` and `PositionedRule`; PDF/SVG painters
|
||||
add it to the baseline.
|
||||
@@ -28,7 +17,7 @@ Completed: paragraph indentation (`\parindent`) and `\hfill`/`\hfil` (see
|
||||
box rectangle when `frame` is set.
|
||||
- `\raisebox{lift}{...}` reuses the same nested item with `raise = lift`.
|
||||
|
||||
## 3. Footnotes
|
||||
## 2. Footnotes
|
||||
|
||||
- Parser: capture `\footnote{...}`/`\thanks{...}` into a per-paragraph list
|
||||
with a number marker run (superscript approximation via smaller raised text
|
||||
@@ -37,7 +26,7 @@ Completed: paragraph indentation (`\parindent`) and `\hfill`/`\hfil` (see
|
||||
text height and place footnotes with a separator rule at the bottom.
|
||||
- Paint footnotes as normal positioned lines after the page's content.
|
||||
|
||||
## 4. Floats
|
||||
## 3. Floats
|
||||
|
||||
- Classify figure/table blocks as floats with `[htbp]` placement hints.
|
||||
- Planner: maintain pending floats and try top/bottom/page placements; keep
|
||||
@@ -45,13 +34,13 @@ Completed: paragraph indentation (`\parindent`) and `\hfill`/`\hfil` (see
|
||||
- Renderer: place deferred floats at the saved slots; page keys must include
|
||||
float placement decisions.
|
||||
|
||||
## 5. Page styles / headers-footers
|
||||
## 4. Page styles / headers-footers
|
||||
|
||||
- `DocumentModel` fields for header/footer runs and `\pagestyle`/`\thispagestyle`.
|
||||
- Paint headers/footers in the page margins in both PDF and SVG; page numbers
|
||||
need a page index placeholder resolved at paint time.
|
||||
|
||||
## 6. Unified pagination
|
||||
## 5. Unified pagination
|
||||
|
||||
- Extract the current duplicated planner (`build_page_break_plan`) and renderer
|
||||
(`build_positioned_pages`) vertical logic into one page builder returning an
|
||||
|
||||
Reference in new issue
Block a user