* fix: remove unnecessary &mut in FontResolverImpl::append_font()
* refactor: better readablity in FontResolverImpl::rebuild()
* feat: FontResovlerImpl::clone_and_rebuild()
Change FontSlot to store Arc to QueryRef<Font, FontLoader>, so we can
clone FontSlot and share the cached loaded font between different slots.
Since CompilerUniverse only holds a immutable Arc to FontResovlerImpl,
adding clone_and_rebuild method allow us to append and rebuild without
mutable access to FontResovlerImpl.
* refactor: remove partial_book and modify methods from FontResolverImpl
partial_book is removed from FontResolverImpl, all the modifying methods
are also removed.
new method get_fonts and new_with_fonts are added.
If you want to modify fonts, you can get all fonts and modify them, then
call new_with_fonts to create a new FontResolverImpl.
* refactor: SystemFontSearch, BrowserFontSearch
- Both font searcher now is just a wrapper for Vec<(FontInfo,
FontSlot)>, typst::FontBook will be built when converting into
FontResolverImpl.
- Provide a method with_fonts_mut() so user can get a direct mutable
access to the under lying fonts vector to do any changes.
- Support searcher -> resolver and resolver -> searcher conversion.
* refactor: api change to biulder pattern
Method new_with_resolver() is added since CompilerUniverse only holds
Arc reference to resolver, and we can't move it out.
* fix: add fontdb::Database to SystemFontSearcher
Store fonts info in db, load them in bulk when calling flush()
* chore: merge `FontResolverImpl` and `TinymistFontResolver`
* feat: remove font profile feature
* feat: remove project font
* docs: comment the font resolver trait
* docs: comment the font slot struct
* docs: comment the crate
* test: move system tests
* dev: clean resolver
* dev: clean searchers
* dev: clean par iters
* feat: enrich memory font resolver
* todo: useless reuse
* dev: remove reuse api
* dev: build font book in `fn build`
* fix: make clippy happy
* fix: bad use
---------
Co-authored-by: c0per <60544162+c0per@users.noreply.github.com>
* feat: show rendered bibliography in citation details
* adjust code and revert changes to completions
* refactor: refactor a bit
* refactor: refactor two bit
* feat: improve hover docs a bit
* test: add hover tests for label and ref
* test: add html tests
---------
Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
* doc: Update Neovim config to use non-blocking system call
* docs: Update Neovim config to use non-blocking system call--mention issue in comment on older versions
* docs: turn comments out of code block
* fix: word
---------
Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
* fix: remove system time deps from crates
* fix: remove system time deps from crates
* fix: smater feature gate
* docs: add some todos
* Update time.rs
* Update Cargo.toml
* build: remove hard dep chrono
* feat: fold list and enum item content
* chore: format code
* feat: add new fixtures for folding range tests with list and enum structures
---------
Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
* feat: build pdf docs for all platforms
* fix: name
* feat: others
* feat: remove dispatch trigger
* fix: checkout
* fix: workaround the bug
* feat: build one for all
* feat: build one for all
* feat: build one for all 2
* fix: bundle syntaxes
* fix: orders
* fix: too slow windows