Commit 3ee8b88
committed
models/public: Remove default
- Changed `name` and `size` in the font style model from `Optional` to
required fields.
- Simplified downstream usage by ensuring these fields are always
defined.
examples/extract_text: Simplify font formatting logic
- Updated `_format_font` to remove conditional checks for `None` values,
as `name` and `size` are now guaranteed to be present in the font
style model.
Assisted-by: CodexNone for name and size fields1 parent 1a5ac03 commit 3ee8b88
2 files changed
Lines changed: 8 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 57 | + | |
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
528 | 525 | | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
535 | 529 | | |
536 | 530 | | |
537 | 531 | | |
| |||
0 commit comments