about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-12-05 13:44:24 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-12-05 13:44:24 -0600
commit39bab0bb08c0fbe1a3deeeb5178e97ac15242bcd (patch)
tree6947a4e8c14b17aff8ff3eefddc3881d61ee6c2e
parent65e5f2ac863756335070377813817fa87c94d262 (diff)
downloadvoidsky-39bab0bb08c0fbe1a3deeeb5178e97ac15242bcd.tar.zst
Switch to System font to fix emoji rendering
-rw-r--r--src/view/com/post-thread/PostThreadItem.tsx2
-rw-r--r--src/view/com/post/Post.tsx2
-rw-r--r--src/view/com/posts/FeedItem.tsx2
-rw-r--r--src/view/com/util/RichText.tsx10
4 files changed, 3 insertions, 13 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx
index d08ca3e4a..fcfaba9d4 100644
--- a/src/view/com/post-thread/PostThreadItem.tsx
+++ b/src/view/com/post-thread/PostThreadItem.tsx
@@ -356,7 +356,7 @@ const styles = StyleSheet.create({
     maxWidth: 240,
   },
   postText: {
-    fontFamily: 'Helvetica Neue',
+    fontFamily: 'System',
     fontSize: 16,
     lineHeight: 20.8, // 1.3 of 16px
   },
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx
index 736b40157..2996991e7 100644
--- a/src/view/com/post/Post.tsx
+++ b/src/view/com/post/Post.tsx
@@ -206,7 +206,7 @@ const styles = StyleSheet.create({
     paddingBottom: 8,
   },
   postText: {
-    fontFamily: 'Helvetica Neue',
+    fontFamily: 'System',
     fontSize: 16,
     lineHeight: 20.8, // 1.3 of 16px
   },
diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx
index 4d50531bd..19df5a74d 100644
--- a/src/view/com/posts/FeedItem.tsx
+++ b/src/view/com/posts/FeedItem.tsx
@@ -249,7 +249,7 @@ const styles = StyleSheet.create({
     minHeight: 36,
   },
   postText: {
-    fontFamily: 'Helvetica Neue',
+    fontFamily: 'System',
     fontSize: 16,
     lineHeight: 20.8, // 1.3 of 16px
   },
diff --git a/src/view/com/util/RichText.tsx b/src/view/com/util/RichText.tsx
index 3f0e99087..835a3515b 100644
--- a/src/view/com/util/RichText.tsx
+++ b/src/view/com/util/RichText.tsx
@@ -98,13 +98,3 @@ function* toSegments(text: string, entities: Entity[]) {
     yield text.slice(cursor, text.length)
   }
 }
-
-function stripUsername(v: string): string {
-  return v.trim().replace('@', '')
-}
-
-function isSameLink(a: string, b: string) {
-  a = a.startsWith('http') ? a : `https://${a}`
-  b = b.startsWith('http') ? b : `https://${b}`
-  return a === b
-}