Switch to System font to fix emoji rendering

zio/stable
Paul Frazee 2022-12-05 13:44:24 -06:00
parent 65e5f2ac86
commit 39bab0bb08
4 changed files with 3 additions and 13 deletions

View File

@ -356,7 +356,7 @@ const styles = StyleSheet.create({
maxWidth: 240, maxWidth: 240,
}, },
postText: { postText: {
fontFamily: 'Helvetica Neue', fontFamily: 'System',
fontSize: 16, fontSize: 16,
lineHeight: 20.8, // 1.3 of 16px lineHeight: 20.8, // 1.3 of 16px
}, },

View File

@ -206,7 +206,7 @@ const styles = StyleSheet.create({
paddingBottom: 8, paddingBottom: 8,
}, },
postText: { postText: {
fontFamily: 'Helvetica Neue', fontFamily: 'System',
fontSize: 16, fontSize: 16,
lineHeight: 20.8, // 1.3 of 16px lineHeight: 20.8, // 1.3 of 16px
}, },

View File

@ -249,7 +249,7 @@ const styles = StyleSheet.create({
minHeight: 36, minHeight: 36,
}, },
postText: { postText: {
fontFamily: 'Helvetica Neue', fontFamily: 'System',
fontSize: 16, fontSize: 16,
lineHeight: 20.8, // 1.3 of 16px lineHeight: 20.8, // 1.3 of 16px
}, },

View File

@ -98,13 +98,3 @@ function* toSegments(text: string, entities: Entity[]) {
yield text.slice(cursor, text.length) 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
}