abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorJules Aguillon2024-02-12 23:45:58 +0100
committerJules Aguillon2024-02-17 23:28:31 +0100
commitd56e4d129e6df300eee468ad2ed8a397eba09593 (patch)
tree0032a3eb70351ed66860dd1ad764da16cf43a509
parente9f734b6ccef1e827930aba8e9bf42acb4da1be2 (diff)
downloadunexpected-keyboard-d56e4d129e6df300eee468ad2ed8a397eba09593.tar.gz
unexpected-keyboard-d56e4d129e6df300eee468ad2ed8a397eba09593.zip
compose: Add glyph
-rw-r--r--assets/special_font.ttfbin10212 -> 10328 bytes
-rw-r--r--srcs/juloo.keyboard2/KeyValue.java2
-rw-r--r--srcs/special_font/16.svg8
3 files changed, 9 insertions, 1 deletions
diff --git a/assets/special_font.ttf b/assets/special_font.ttf
index 5217d4b..5b9aa57 100644
--- a/assets/special_font.ttf
+++ b/assets/special_font.ttf
Binary files differ
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java
index e60e554..d1dd445 100644
--- a/srcs/juloo.keyboard2/KeyValue.java
+++ b/srcs/juloo.keyboard2/KeyValue.java
@@ -485,7 +485,7 @@ public final class KeyValue
case "autofill": return editingKey("auto", Editing.AUTOFILL);
/* The compose key */
- case "compose": return modifierKey("comp", Modifier.COMPOSE_PENDING, FLAG_SECONDARY);
+ case "compose": return modifierKey(0xE016, Modifier.COMPOSE_PENDING, FLAG_SECONDARY | FLAG_SMALLER_FONT);
/* Placeholder keys */
case "removed": return placeholderKey(Placeholder.REMOVED);
diff --git a/srcs/special_font/16.svg b/srcs/special_font/16.svg
new file mode 100644
index 0000000..80befe5
--- /dev/null
+++ b/srcs/special_font/16.svg
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- By Vectorization: Mrmw - Own work using: iso.org/obp/graphics/grs/8f631f6d-89af-4962-bd14-a94dd3c1a2bf 200.png, Public Domain, https://commons.wikimedia.org/w/index.php?curid=20206736 -->
+<svg width="200" height="200" version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
+ <g fill="none">
+ <rect x="22.5" y="33.5" width="103" height="132" stroke="#000" stroke-width="5"/>
+ <circle cx="125.5" cy="99.5" r="66" stroke="#000" stroke-width="5"/>
+ </g>
+</svg>