mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 07:10:04 -04:00
Update emoji-icon-font with fix for fullwidth latin characters (#7067)
* This PR is based on https://github.com/emilk/egui/pull/5877 by @danielhjacobs ## Original PR description Replace the current `emoji-icon-font.ttf` with the updated font from https://github.com/jslegers/emoji-icon-font/pull/19 to address https://github.com/emilk/egui/issues/1284. The second commit then removes the now unnecessary hack. * Closes https://github.com/emilk/egui/issues/1284 * Closes https://github.com/emilk/egui/pull/5877 --------- Co-authored-by: Daniel Jacobs <danielhunterjacobs@gmail.com>
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:af99bd49ceee6bbd96cc813cd96ac01f5c135ed7d94b8ff4010fa45feac5359a
|
oid sha256:1523b8ad99267eceb65a9009ca38d99937e61c45a1115d050644f037cadfc16c
|
||||||
size 127703
|
size 127794
|
||||||
|
|||||||
@@ -149,14 +149,6 @@ impl FontImpl {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.name == "emoji-icon-font" {
|
|
||||||
// HACK: https://github.com/emilk/egui/issues/1284 https://github.com/jslegers/emoji-icon-font/issues/18
|
|
||||||
// Don't show the wrong fullwidth capital letters:
|
|
||||||
if 'S' <= chr && chr <= 'Y' {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
matches!(
|
matches!(
|
||||||
chr,
|
chr,
|
||||||
// Strip out a religious symbol with secondary nefarious interpretation:
|
// Strip out a religious symbol with secondary nefarious interpretation:
|
||||||
|
|||||||
BIN
crates/epaint_default_fonts/emoji-icon-font.ttf
Normal file
BIN
crates/epaint_default_fonts/emoji-icon-font.ttf
Normal file
Binary file not shown.
Reference in New Issue
Block a user