2
1
Fork
You've already forked AddFonts
0

dev #2

Merged
gnoblet merged 48 commits from dev into main 2026年02月07日 17:35:42 +01:00
No description provided.
- Removed outdated tests for `add_font_bunny` and replaced with new tests for `as_CacheEntryList`, `as_FontProvider`, and other utility functions.
- Added tests for cache operations including `cache_write`, `cache_read`, `cache_remove`, and `cache_clean`.
- Introduced tests for font conversion functions and validation of provider helpers.
- Implemented tests for error handling in font downloading and file path generation.
- Ensured all new tests validate expected behaviors and error conditions for font management.
- Replace provider list with S7 `FontProvider` object (with input validation)
- Use `bold.wt` for bold variant downloads instead of reusing `regular.wt`
- Switch from `new_cache_entry`/`cache_set` to `CacheMeta`, `cache_read`/`cache_write`, and `CacheEntryList` APIs
- Improve bolditalic fallback chain (bold → italic → regular)
- Update documentation to reflect new types and terminology (registry → cache)
- Replace `provider_l` parameter with `provider` of class `FontProvider`
- Add S7 class validation check at function entry
- Access provider fields via `@` slot syntax instead of dollar list access
- Simplify control flow: cleaner download path selection, conversion handling, and final return
- Improve warning messages to include family/weight/style context
- Remove redundant intermediate file cleanup and dead code
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
gnoblet/AddFonts!2
Reference in a new issue
gnoblet/AddFonts
No description provided.
Delete branch "dev"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?