Fix rendering of …
(ellipsis)
Broken when we introduced thing space support
This commit is contained in:
parent
518b4f447e
commit
c75e72693c
2 changed files with 33 additions and 1 deletions
|
@ -24,6 +24,7 @@ NOTE: [`epaint`](crates/epaint/CHANGELOG.md), [`eframe`](crates/eframe/CHANGELOG
|
|||
* Expose `TextEdit`'s multiline flag to AccessKit ([#2448](https://github.com/emilk/egui/pull/2448)).
|
||||
* Don't render `\r` (Carriage Return) ([#2452](https://github.com/emilk/egui/pull/2452)).
|
||||
* The `button_padding` style option works closer as expected with image+text buttons now ([#2510](https://github.com/emilk/egui/pull/2510)).
|
||||
* Fixed rendering of `…` (ellipsis).
|
||||
|
||||
|
||||
## 0.20.1 - 2022-12-11 - Fix key-repeat
|
||||
|
|
|
@ -392,7 +392,38 @@ fn invisible_char(c: char) -> bool {
|
|||
// See https://github.com/emilk/egui/issues/336
|
||||
|
||||
// From https://www.fileformat.info/info/unicode/category/Cf/list.htm
|
||||
('\u{200B}'..='\u{206F}').contains(&c) // TODO(emilk): heed bidi characters
|
||||
|
||||
// TODO(emilk): heed bidi characters
|
||||
|
||||
matches!(
|
||||
c,
|
||||
'\u{200B}' // ZERO WIDTH SPACE
|
||||
| '\u{200C}' // ZERO WIDTH NON-JOINER
|
||||
| '\u{200D}' // ZERO WIDTH JOINER
|
||||
| '\u{200E}' // LEFT-TO-RIGHT MARK
|
||||
| '\u{200F}' // RIGHT-TO-LEFT MARK
|
||||
| '\u{202A}' // LEFT-TO-RIGHT EMBEDDING
|
||||
| '\u{202B}' // RIGHT-TO-LEFT EMBEDDING
|
||||
| '\u{202C}' // POP DIRECTIONAL FORMATTING
|
||||
| '\u{202D}' // LEFT-TO-RIGHT OVERRIDE
|
||||
| '\u{202E}' // RIGHT-TO-LEFT OVERRIDE
|
||||
| '\u{2060}' // WORD JOINER
|
||||
| '\u{2061}' // FUNCTION APPLICATION
|
||||
| '\u{2062}' // INVISIBLE TIMES
|
||||
| '\u{2063}' // INVISIBLE SEPARATOR
|
||||
| '\u{2064}' // INVISIBLE PLUS
|
||||
| '\u{2066}' // LEFT-TO-RIGHT ISOLATE
|
||||
| '\u{2067}' // RIGHT-TO-LEFT ISOLATE
|
||||
| '\u{2068}' // FIRST STRONG ISOLATE
|
||||
| '\u{2069}' // POP DIRECTIONAL ISOLATE
|
||||
| '\u{206A}' // INHIBIT SYMMETRIC SWAPPING
|
||||
| '\u{206B}' // ACTIVATE SYMMETRIC SWAPPING
|
||||
| '\u{206C}' // INHIBIT ARABIC FORM SHAPING
|
||||
| '\u{206D}' // ACTIVATE ARABIC FORM SHAPING
|
||||
| '\u{206E}' // NATIONAL DIGIT SHAPES
|
||||
| '\u{206F}' // NOMINAL DIGIT SHAPES
|
||||
| '\u{FEFF}' // ZERO WIDTH NO-BREAK SPACE
|
||||
)
|
||||
}
|
||||
|
||||
fn allocate_glyph(
|
||||
|
|
Loading…
Reference in a new issue