Commit graph

52 commits

Author SHA1 Message Date
Jeremy Soller
3640b5e1ef
Update rustybuzz to 0.8.0 2023-06-12 11:13:51 -06:00
Jeremy Soller
bb176df59e
Merge pull request #128 from tigregalis/fontdb-0-14
bump `fontdb` to 0.14.1
2023-06-08 12:43:13 -06:00
bjorn3
95e36249d5 Remove the dependency on ouroboros
This reduces compilation time by removing a dependency on syn and other
dependencies of ouroboros_macros. In addition it saves a lot of unused
codegened methods.

On my laptop (2 core + HT) this reduces compilation time by ~20%. On a
many core system this doesn't help much though as the critical path path
consists of both ttf-parser -> rustybuzz and swash. Further gains will
likely need to be made by reducing compilation time for these crates.

Benchmark 1: cargo build
  Time (mean ± σ):     25.150 s ±  0.167 s    [User: 84.414 s, System: 7.335 s]
  Range (min … max):   24.909 s … 25.444 s    10 runs

Benchmark 1: cargo build
  Time (mean ± σ):     19.819 s ±  0.226 s    [User: 67.754 s, System: 5.592 s]
  Range (min … max):   19.492 s … 20.140 s    10 runs

The code is based on an expansion of the ouroboros macro, cleaned up to
remove all unused methods and inline most functions that are only called
once.
2023-06-08 18:00:42 +02:00
tigregalis
9c4fd35d8e bump fontdb to 0.14.1 2023-05-12 11:11:13 +08:00
Christopher Serr
a8546df7b3 Fix WebAssembly support
There was a problem in the upstream `sys-locale` crate where it assumed
that every WebAssembly target can use `wasm-bindgen` just fine. This
however is not the case, as `wasm-bindgen` and the ecosystem around it
are specifically to target the web. In reality there however are at
least the following 4 "targets" (with possibly more in the future):
 - WebAssembly on the web
 - Freestanding WebAssembly
 - WebAssembly with WASI
 - WebAssembly with Emscripten

These are all supported properly through `sys-locale` 0.3.0 now. However
because "WebAssembly on the web" unfortunately is not its own target and
instead uses `wasm32-unknown-unknown`, just like freestanding
WebAssembly, the only way to differentiate between them is through a
feature. This is the best practice and is done throughout the ecosystem.
Here the feature `wasm-web` is introduced that properly forwards it to
`sys-locale` and possibly other crates in the future.
2023-04-04 17:22:00 +02:00
Jeremy Soller
3224daa66f
0.8.0 2023-04-03 08:27:28 -06:00
Edgar Geier
bff5aaaea3
Make FontSystem not self-referencing 2023-03-12 10:23:54 +01:00
Edgar Geier
7e6368a4fc
Bump rustybuzz version to 0.7 2023-03-03 13:20:32 +01:00
Edgar Geier
2c1d564d62
Update fontdb dependency to version 0.13 2023-03-03 13:07:49 +01:00
Jeremy Soller
eca804c732
Revert "Make FontSystem not self-referencing and update fontdb and rustybuzz" 2023-03-02 18:16:57 -07:00
Edgar Geier
20234f8d11
Bump rustybuzz version to 0.7 2023-03-03 00:53:00 +01:00
Edgar Geier
f8bc71af0a
Update fontdb dependency to version 0.13 2023-03-03 00:53:00 +01:00
Edgar Geier
506a4194be
Make FontSystem not self-referencing 2023-03-03 00:53:00 +01:00
Jeremy Soller
0d7308b775
0.7.0 2023-02-07 12:28:48 -07:00
Andrew Wheeler
8614a7a398 Updated RangeMap to Add Clear(). 2022-12-30 08:33:00 -07:00
Jeremy Soller
cf9bf26d49
0.6.0 2022-12-20 09:03:39 -07:00
Jeremy Soller
0e302e540a
0.5.6 2022-12-20 08:58:17 -07:00
Jeremy Soller
82d5fc02a5
0.5.5 2022-12-16 13:51:05 -07:00
Jeremy Soller
21e0078d25
cargo upgrade 2022-12-14 09:21:42 -07:00
Jeremy Soller
d54af47d9d
0.5.4 2022-12-14 09:19:20 -07:00
Jeremy Soller
cdf36db03d
0.5.3 2022-12-13 09:23:50 -07:00
Jeremy Soller
6660a1d95b
0.5.2 2022-12-08 11:33:53 -07:00
Jeremy Soller
69e41a558c
0.5.1 2022-12-08 10:32:10 -07:00
Jasper Bekkers
e6df88f698
Add cargo-deny to the CI of this crate (#45) 2022-11-21 04:40:06 -07:00
Jeremy Soller
425f741982
0.5.0 2022-11-15 12:27:23 -07:00
Jeremy Soller
ee54e7626b
Vi-style editor and other editor improvements (#40)
* WIP VI wrapper for editor

* WIP: block cursor

* Create Edit trait, run CI on all feature options

* Add prints describing build steps to ci.sh

* Custom rendering for Vi editor

* Clippy fixes

* More clippy fixes

* Show clippy results in CI

* Fix for Redox

* Fix clippy lint

* Add vi feature to enable vi-style editor

* Add escape to libcosmic text box
2022-11-15 12:26:59 -07:00
Andrew Wheeler(Genusis)
271ca5cf7a
Converted attr range to use RangeMap BTree (#41)
* Converted attr range to use RangeMap BTree

* Change get_span() to use First index instead of range.

* update doc comment
2022-11-14 11:05:34 -07:00
Jeremy Soller
1663bfc96c
Add SyntaxEditor abstraction using optional synect feature 2022-11-09 10:09:42 -07:00
Jeremy Soller
f0b6afdf69
0.4.1 2022-11-08 13:25:21 -07:00
Jeremy Soller
268805ba0c no_std support 2022-11-08 13:24:14 -07:00
Hugo Osvaldo Barrera
ae25b6c1b9 Add links to repo and docs in Cargo.toml
This will add a link to the repository in docs.rs, and both links to
crates.io.
2022-11-04 12:46:57 -06:00
Jeremy Soller
093a6081bc
0.4.0 2022-11-04 10:39:00 -06:00
Ian Douglas Scott
0d3fb1dd9d Use ouroboros in FontSystem to avoid lifetime bound
Perhaps not quite what ouroboros is expected to be used for, but it's
not too bad, and avoiding the lifetime bound can be a huge help.
2022-11-04 10:37:32 -06:00
Jeremy Soller
b0ec548a5e
0.3.0 2022-10-31 11:40:01 -06:00
Jeremy Soller
4e2e41470b
0.2.2 2022-10-27 18:29:41 -06:00
Jeremy Soller
52be09ec17
0.2.1 2022-10-27 15:00:23 -06:00
Jeremy Soller
7980fb65f1
0.2.0 2022-10-27 11:15:46 -06:00
Jeremy Soller
4edca946ea
0.1.5 2022-10-27 08:37:27 -06:00
Jeremy Soller
39b7bef5cc
0.1.4 2022-10-26 17:58:50 -06:00
Jeremy Soller
94576fb682
0.1.3 2022-10-26 11:12:36 -06:00
Jeremy Soller
7d00af3551
Update fontdb to 0.9.3 2022-10-26 11:12:05 -06:00
Jeremy Soller
d7f9eec6ef 0.1.2 2022-10-25 21:38:54 -06:00
Jeremy Soller
ea18576032 Make it possible to set and use default family 2022-10-25 21:16:02 -06:00
Jeremy Soller
904ee71414 0.1.1 2022-10-25 19:40:26 -06:00
Jeremy Soller
b6bd72335c
Add description for crate 2022-10-25 12:54:21 -06:00
Jeremy Soller
1c341f3126
Make swash optional, add swash cache abstraction 2022-10-25 10:55:24 -06:00
Jeremy Soller
ab56c52c73
Improve selection inside ligatures 2022-10-24 14:27:26 -06:00
Jeremy Soller
92a83fc4a6
Revert "Switch unicode-linebreak to xi-unicode for ~25% faster builds"
This fixes ZJW emoji support.

This reverts commit c1262eca74.
2022-10-24 14:12:23 -06:00
Jeremy Soller
564dab009c Relicense MIT OR Apache 2.0 2022-10-24 12:58:15 -06:00
Ian Kettlewell
c1262eca74 Switch unicode-linebreak to xi-unicode for ~25% faster builds 2022-10-23 12:57:35 -06:00