Commit graph

529 commits

Author SHA1 Message Date
Edgar Geier
2c1d564d62
Update fontdb dependency to version 0.13 2023-03-03 13:07:49 +01:00
Jeremy Soller
4ac5e1c6a6
Merge pull request #93 from pop-os/revert-89-font-system
Revert "Make `FontSystem` not self-referencing and update `fontdb` and `rustybuzz`"
2023-03-02 18:18:16 -07:00
Jeremy Soller
eca804c732
Revert "Make FontSystem not self-referencing and update fontdb and rustybuzz" 2023-03-02 18:16:57 -07:00
Jeremy Soller
b6398a2d57
Merge pull request #89 from geieredgar/font-system
Make `FontSystem` not self-referencing and update `fontdb` and `rustybuzz`
2023-03-02 18:15:34 -07:00
Edgar Geier
c1636f6381
Allow Zlib in dependencies 2023-03-03 01:01:41 +01: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
750d988429
Make FontKey repr(transparent) if swash feature is disabled 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
0548d7ae59
Merge pull request #92 from notgull/font-system-new-warning
docs: Add a warning about FontSystem::new()
2023-03-02 14:54:23 -07:00
Jeremy Soller
bd27ca8ad8
Merge pull request #88 from geieredgar/clippy-fixes
Fix clippy warnings
2023-03-02 14:53:08 -07:00
Jeremy Soller
7078c3bb98
Fix vi editor compilation 2023-03-02 11:31:07 -07:00
Jeremy Soller
9158cb83d0
Merge pull request #87 from geieredgar/swash-cache
Remove lifetime from `SwashCache`
2023-03-02 11:24:36 -07:00
Edgar Geier
6c501c6640
Fix clippy warnings 2023-03-01 22:58:41 +01:00
Edgar Geier
4e93853765
Remove lifetime from SwashCache 2023-03-01 22:41:59 +01:00
jtnunley
7098ee62e2 fmt 2023-03-01 13:36:29 -08:00
jtnunley
e00964fccf Add a warning about FontSystem::new() 2023-03-01 13:16:13 -08:00
Jeremy Soller
2b991129e3
Fix editor-test 2023-03-01 11:46:41 -07:00
Jeremy Soller
3135122f6b
Merge pull request #72 from hecrj/logical-units
Use `f32` instead of `i32` for lengths
2023-03-01 11:44:15 -07:00
Héctor Ramón Jiménez
22b8a534fa
Avoid division by zero in LayoutRunIter 2023-02-28 20:40:31 +01:00
Héctor Ramón Jiménez
4320ae6329
Use f32 instead of i32 for lengths
This allows users to use logical coordinates instead of physical ones.
2023-02-28 03:39:31 +01:00
Jeremy Soller
f69cb33b89
Merge pull request #85 from hecrj/expose-zeno-placement
Expose `Placement` from `zeno` in `swash` module
2023-02-27 12:49:43 -07:00
Héctor Ramón Jiménez
f08bea22ed
Expose Placement from zeno in swash module 2023-02-27 18:14:26 +01:00
Jeremy Soller
94df751260
Merge pull request #83 from hojjatabdollahi/main
Fix selection highlighting when paragraph is justified
2023-02-24 15:42:19 -07:00
Hojjat
fdd3ee83a5 Fix selection highlighting when paragraph is justified 2023-02-24 13:00:25 -07:00
Jeremy Soller
f4b14f1210
Merge pull request #78 from hojjatabdollahi/main
Alignment and Justification
2023-02-24 10:54:09 -07:00
Hojjat
260748afe7 Make sure the lines exists before applying the alignment 2023-02-24 10:07:23 -07:00
Hojjat
fff8389bbf Allow set_align to clear the alignment by setting it to None 2023-02-24 08:39:24 -07:00
Jeremy Soller
5fc5d2bbdc
Merge pull request #82 from grovesNL/y-offset
Exclude line y offset in height comparison
2023-02-24 08:21:31 -07:00
grovesNL
6a656e9a0f Exclude line y offset in height comparison
We start `line_y` at an initial offset, so we need to account for this
later when checking if the total height is beyond the buffer height.
2023-02-24 11:27:45 -03:30
Hojjat
45f6474a74 Apply alignment to selection in editor-libcosmic 2023-02-23 18:25:41 -07:00
Hojjat
d313713f44 Removed alignment from Buffer, added alignment per Bufferline to editor-libcosmic 2023-02-23 14:23:56 -07:00
Hojjat
4e7e1cc79e Alignment is based on text direction by default now 2023-02-23 13:45:34 -07:00
Hojjat
27d52a12e9 Fix the trailing space 2023-02-23 13:26:21 -07:00
Hojjat
2442422762 Add justification buttons to editor-libcosmic 2023-02-22 21:59:03 -07:00
Hojjat
59e89bdbaa Justified 2023-02-22 20:48:57 -07:00
Hojjat
00ff5b72f3 Align Left, Right, and Center works 2023-02-22 18:31:49 -07:00
Jeremy Soller
9a4d067f9d
Merge pull request #77 from notgull/early-div-zero
bugfix: Panic if a line height of zero is passed into Buffer
2023-02-19 14:34:38 -07:00
notgull
86d7ba959e Forgot about set_metrics 2023-02-18 18:00:57 -08:00
notgull
c4ee3ba64e Early panic on divide by zero 2023-02-18 17:59:30 -08:00
Jeremy Soller
cb4d544688
Merge pull request #71 from hecrj/new_with_fonts
Implement `FontSystem::new_with_fonts` helper
2023-02-09 07:06:27 -07:00
Jeremy Soller
0d7308b775
0.7.0 2023-02-07 12:28:48 -07:00
Héctor Ramón Jiménez
655de0af5f
Implement FontSystem::new_with_fonts helper
This helper is useful to initialize a `FontSystem` with some embedded
fonts, for instance.
2023-02-04 11:30:41 +01:00
Jeremy Soller
9b48d99666
Merge pull request #68 from hecrj/fix/emoji-fallback-order
Fix `Noto Color Emoji` font fallback order for Unix
2023-02-03 20:17:44 -07:00
Héctor Ramón Jiménez
66288ab2da
Fix Noto Color Emoji font fallback order for Unix 2023-01-31 06:08:07 +01:00
Jeremy Soller
f92a2058cf
Merge pull request #67 from grovesNL/add-docs
Fill out some more docs
2023-01-30 05:27:22 -07:00
grovesNL
a3e035881b Fill out some more docs 2023-01-29 22:29:17 -03:30
Jeremy Soller
983d6b7eac
Merge pull request #66 from grovesNL/clamp-size
Avoid negative width/height in `Buffer::set_size`
2023-01-26 20:18:22 -07:00
grovesNL
be9b4cb36c Avoid negative width/height in Buffer::set_size
Negative width/height may cause unexpected effects on the layout, which
we can avoid by clamping.
2023-01-26 22:16:23 -03:30
Audrey Dutcher
a5903bb3bf Don't do profile timing on wasm32 2023-01-23 14:18:44 -07:00