You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
RustPad Studio v3.0.1 — Typography, Inline Editing & PDF Layout Patch
Fixed Bugs (#60, #61, #62, #63)
PDF Inline Spacing, Continuous Phrase Underlines & Zero Run Overlap (crates/pdf_create, crates/pdf_engine, crates/power_tools):
Replaced coarse fixed-factor character width estimates and .trim() space stripping with official per-codepoint Adobe Standard-14 AFM width tables (Helvetica, Helvetica-Bold, Times-Roman, Times-Bold, Courier).
Preserves inter-span leading/trailing spaces ("hello everyone im " + "nour yahyaoui" + " a web developer from tunisia"), merges contiguous same-style runs per wrapped line for continuous underlines/highlights across multi-word phrases, and removes the * 1.08 run-advance drift hack.
Recovers gap-calibrated spaces, underlines, and strikethroughs cleanly during PDF -> Word roundtrips.
Calibrated PDF Studio Viewer & 12-Slot TrueType Engine (crates/rustpad_render, app/src/pdf_view.rs):
Added Surface::draw_text_to_width so embedded DejaVu glyphs fit exact PDF Standard-14 run boxes without colliding into subsequent runs or overshooting underlines.
Expanded FontSlot to all 12 (Sans | Serif | Mono) × (Regular | Bold | Italic | BoldItalic) variants with 4×4 supersampled 0.20 oblique italic shear and non-zero-winding span-dilated synthetic bold.
Word Studio Pending Typing Styles & Lossless Rich-Span Editing (app/src/state.rs, app/src/word_view.rs, crates/doc_model):
Toggling Bold, Italic, Underline, Strikethrough, Superscript, Subscript, font family, font size, ink color, or highlight at the caret with no selection now queues pending_typing_style for newly typed text instead of overwriting existing paragraph runs.
Enter (Paragraph::split_at_char), Backspace, and Delete preserve all rich SpanStyle and RevisionMeta runs across splits and merges.
Rich-span line wrapping, overlong URL soft-wrapping, and Center / Right alignment measure exact per-span glyph advances.