From 6f9cf5e450974a9a563bfd2d972b0d629463da26 Mon Sep 17 00:00:00 2001 From: Matthew Kevins Date: Mon, 19 Feb 2024 15:14:16 +1000 Subject: [PATCH 1/2] Use sans-serif in comment detail fragment --- WordPress/src/main/res/layout/comment_detail_fragment.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/src/main/res/layout/comment_detail_fragment.xml b/WordPress/src/main/res/layout/comment_detail_fragment.xml index a46b6c529176..e7f39c3f815b 100644 --- a/WordPress/src/main/res/layout/comment_detail_fragment.xml +++ b/WordPress/src/main/res/layout/comment_detail_fragment.xml @@ -109,7 +109,7 @@ android:id="@+id/text_content" android:layout_width="match_parent" android:layout_height="wrap_content" - android:fontFamily="serif" + android:fontFamily="sans-serif" android:paddingStart="@dimen/margin_extra_large" android:paddingTop="@dimen/margin_large" android:paddingEnd="@dimen/margin_extra_large" From 5468fd113c2b91d62a4378f463c4369def3857e2 Mon Sep 17 00:00:00 2001 From: Matthew Kevins Date: Mon, 19 Feb 2024 18:04:44 +1000 Subject: [PATCH 2/2] Use sans-serif font in note block and comment user note block --- .../wordpress/android/ui/notifications/blocks/NoteBlock.java | 2 +- WordPress/src/main/res/layout/note_block_comment_user.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/notifications/blocks/NoteBlock.java b/WordPress/src/main/java/org/wordpress/android/ui/notifications/blocks/NoteBlock.java index 6c92527da847..570821795d0c 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/notifications/blocks/NoteBlock.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/notifications/blocks/NoteBlock.java @@ -251,7 +251,7 @@ public void onResourceReady(@NonNull Drawable resource, @Nullable Object model) }); } else { noteBlockHolder.getTextView().setTextSize(28); - TypefaceSpan typefaceSpan = new TypefaceSpan("serif"); + TypefaceSpan typefaceSpan = new TypefaceSpan("sans-serif"); noteText.setSpan(typefaceSpan, 0, noteText.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); } } diff --git a/WordPress/src/main/res/layout/note_block_comment_user.xml b/WordPress/src/main/res/layout/note_block_comment_user.xml index 310b4b7ccde8..8b24a62ee478 100644 --- a/WordPress/src/main/res/layout/note_block_comment_user.xml +++ b/WordPress/src/main/res/layout/note_block_comment_user.xml @@ -100,7 +100,7 @@ android:layout_height="wrap_content" android:layout_marginTop="@dimen/margin_medium" android:background="?android:selectableItemBackground" - android:fontFamily="serif" + android:fontFamily="sans-serif" android:paddingBottom="@dimen/margin_medium" android:textAppearance="?attr/textAppearanceBody1" tools:text="Thanks for stopping by my blog! I hope to see you again. " />