From 46408572bcbe3ede276c712e7b798fd5b5cf07a9 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 16 Nov 2024 12:08:36 +0100 Subject: [PATCH] font: Use standard symbols for home and end The glyphs are taken from DejaVuSans, the lines are thickened to improve readability. --- assets/special_font.ttf | Bin 16448 -> 16468 bytes srcs/juloo.keyboard2/KeyValue.java | 4 ++-- srcs/special_font/0B.svg | 14 ++++++-------- srcs/special_font/0C.svg | 14 ++++++-------- 4 files changed, 14 insertions(+), 18 deletions(-) diff --git a/assets/special_font.ttf b/assets/special_font.ttf index 334fe3acfbaf4fb530b80fef25f2f5a40aaa31a4..f70ef6bb4a2f7481ded685ed8c28be939ad9efee 100644 GIT binary patch delta 382 zcmX@mz<8yBae}+34+8@OM|w_WTGfiT(-|08r!X*>W=xDx6>b!XWME)i0mLpj`N@eV z#joW|oT9Awhk=1fvLL^>qkig0Y*}nAY{%F>uuHLfuy5i} z;F!V5##zRBk1K}j8n+YoJ{~om8N6(~*Z4g6cJRyb&k_(4$P+jxXdyU5@QaY2&;emR z;U3|CA`v3{L{&ulL_djni7gQq5w8<}ClMuaPEv zGcm9-@B`f}swk)|C~mGOs?5mFD5}h?@V7d+PmWPwA>&f(f6+nAj6r`ZnQpF;5B?Wz z#kh140~3QQP`?~ZzqzTRps}DjyP~NvqdB9gu`5$sP@mkt4-5ZATQe>V(gVcI RJ_u~uLQo)WzQ>hh3IO5?XO{o~ delta 358 zcmcc8z<8j6ae}+31p@;EM|w_W+Os$BfNa(&3=F0r6Ju0`CyOL9FfgtFVwar!4t{ z!cD?oMEpdyh)RjJh`tbW5St~=C0-)_L?S@qh@=vSWP{{8DIcj-o2RheXG!<|e~(#} zshWYAfs27b*jP|mm6K6aQBcv_$cVA(-ws9(#)N+hn5zFKvoLxwdhPr7ih+s2>;EHW z6{a$X9!8)ZP9{^J7N$=|M*p@kdi~q>ZxLf0Q`z4frYS)7wgZe}44dC^rI`W%bpdLT diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 4e9e507..1216bac 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -586,8 +586,8 @@ public final class KeyValue implements Comparable case "left": return keyeventKey(0xE008, KeyEvent.KEYCODE_DPAD_LEFT, 0); case "page_up": return keyeventKey(0xE002, KeyEvent.KEYCODE_PAGE_UP, 0); case "page_down": return keyeventKey(0xE003, KeyEvent.KEYCODE_PAGE_DOWN, 0); - case "home": return keyeventKey(0xE00B, KeyEvent.KEYCODE_MOVE_HOME, 0); - case "end": return keyeventKey(0xE00C, KeyEvent.KEYCODE_MOVE_END, 0); + case "home": return keyeventKey(0xE00B, KeyEvent.KEYCODE_MOVE_HOME, FLAG_SMALLER_FONT); + case "end": return keyeventKey(0xE00C, KeyEvent.KEYCODE_MOVE_END, FLAG_SMALLER_FONT); case "backspace": return keyeventKey(0xE011, KeyEvent.KEYCODE_DEL, 0); case "delete": return keyeventKey(0xE010, KeyEvent.KEYCODE_FORWARD_DEL, 0); case "insert": return keyeventKey("Ins", KeyEvent.KEYCODE_INSERT, FLAG_SMALLER_FONT); diff --git a/srcs/special_font/0B.svg b/srcs/special_font/0B.svg index 05b78b2..e8ccdcd 100644 --- a/srcs/special_font/0B.svg +++ b/srcs/special_font/0B.svg @@ -1,9 +1,7 @@ - - - - arrow-home - + + + + + diff --git a/srcs/special_font/0C.svg b/srcs/special_font/0C.svg index c1d2ce4..2d3e3fc 100644 --- a/srcs/special_font/0C.svg +++ b/srcs/special_font/0C.svg @@ -1,9 +1,7 @@ - - - - arrow-end - + + + + +