Repository navigation
Fix master - #9
tomassedovic wants to merge 2 commits into
Conversation
Without this, `cargo build` fails with:
error: failed to get `egui` as a dependency of package `demo_glium v0.1.0 (/home/data/go/src/github.com/emilk/emigui/demo_glium)`
Caused by:
failed to load source for dependency `egui`
Caused by:
Unable to update https://github.com/emilk/emigui#e3d1d6c9
Caused by:
revspec 'e3d1d6c99ce37090d496b4f210aaef700235dd9b' not found; class=Reference (4); code=NotFound (-3)
Looks like that particular commit was removed from github. This change
is a result of removing the packages referencing the hash form
`Cargo.lock` and re-running `cargo build`.
Without this, using the egui dependency from another codebase fails to compile, because Rust can't find the `app::set_value` function. Since `set_value` is behind the `with_serde` feature, `on_exit` should be too.
|
Greetings @emilk! I've pulled from master yesterday (I've added egui to my game) and saw the breakages above. I'm not super familiar with the codebase yet so if there's a better way to fix this, please let me know! I'll be happy to update the pull request. Also, thank you for for this crate! I'm really like the way it works and I'm happy with the results in my game. I needed to tweak a few things that I'd love to send back if you're interested. Are you open to receiving PRs? |
|
Hi! Thanks to this PR I decided to finally set up Github Actions CI for
Yes I am! |
|
\o/ thank you! |
…l order Port of emilk#8577 (draft, commits c55da03 and c93e886) to 0.37.0. `layout` resolves UAX emilk#9 embedding levels per paragraph with `unicode-bidi` (first strong character sets the direction, like `dir="auto"`; ASCII text takes no new path). Runs split on level as well as face, right-to-left runs are shaped as such, and `Row::glyphs` stays in logical order with one `Glyph` per char (`Glyph::bidi_level` is new). After line breaking, each row with right-to-left text is placed in visual order (rule L2). `Row::char_at`, `Row::x_offset` and the selection rects are direction-aware, and row backgrounds, underline and strikethrough walk glyphs in visual order. A cluster with more glyphs than characters (a letter the font composes from a base and marks, as in Noto Naskh Arabic or Hack's `ǻ`) is drawn as one atlas bitmap carried by its first char, so the caret no longer breaks on it. 0.37.0's fontless-cluster runs get a bidi level too. Co-authored-by: Abdu Benayad <[email protected]>
`TextDirection::Auto` (the default) takes each paragraph's direction from its first strong character (UAX emilk#9 rules P2 and P3); `LeftToRight` and `RightToLeft` force it. The result is carried to every row as `Row::rtl_paragraph`. A right-to-left paragraph keeps its levels even when they are all even, as for Latin text in a forced right-to-left paragraph.
Tabs, paragraph separators, and whitespace before them or at the end of a row take the paragraph level before the row is reordered. The space where a right-to-left row wraps now goes to the row's left end, not next to the last word wherever that is.
This fixes build errors when using the latest checkout of egui as a dependency.
The first one is caused by entries in
Cargo.lockreferencing a report that no longer seems to exist in the source repo and the second is a compile error when the with_serde feature is disabled (which seems to be the default when using the crate as a library).