Skip to content

Commit f3aeb3c

Browse files
Fix mixed fonts in tRNA structure legend (#19)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1f2c845 commit f3aeb3c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

R/plot-structure.R

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,7 @@ add_structure_legend <- function(
771771
y = as.character(y_offset),
772772
"font-size" = "10",
773773
"font-weight" = "bold",
774+
"font-family" = "Helvetica, Arial, sans-serif",
774775
"Modifications"
775776
)
776777
y_offset <- y_offset + 15
@@ -795,6 +796,7 @@ add_structure_legend <- function(
795796
x = "16",
796797
y = as.character(y_offset),
797798
"font-size" = "9",
799+
"font-family" = "Helvetica, Arial, sans-serif",
798800
mod
799801
)
800802
y_offset <- y_offset + 14
@@ -816,6 +818,7 @@ add_structure_legend <- function(
816818
y = as.character(y_offset),
817819
"font-size" = "10",
818820
"font-weight" = "bold",
821+
"font-family" = "Helvetica, Arial, sans-serif",
819822
"Outlines"
820823
)
821824
y_offset <- y_offset + 15
@@ -837,6 +840,7 @@ add_structure_legend <- function(
837840
x = "16",
838841
y = as.character(y_offset),
839842
"font-size" = "9",
843+
"font-family" = "Helvetica, Arial, sans-serif",
840844
out
841845
)
842846
y_offset <- y_offset + 14
@@ -858,6 +862,7 @@ add_structure_legend <- function(
858862
y = as.character(y_offset),
859863
"font-size" = "10",
860864
"font-weight" = "bold",
865+
"font-family" = "Helvetica, Arial, sans-serif",
861866
"Linkages"
862867
)
863868
y_offset <- y_offset + 15
@@ -880,6 +885,7 @@ add_structure_legend <- function(
880885
x = "25",
881886
y = as.character(y_offset),
882887
"font-size" = "9",
888+
"font-family" = "Helvetica, Arial, sans-serif",
883889
"Exclusive"
884890
)
885891
y_offset <- y_offset + 14
@@ -900,6 +906,7 @@ add_structure_legend <- function(
900906
x = "25",
901907
y = as.character(y_offset),
902908
"font-size" = "9",
909+
"font-family" = "Helvetica, Arial, sans-serif",
903910
"Co-occurring"
904911
)
905912
} else if (has_value && has_neg) {
@@ -920,6 +927,7 @@ add_structure_legend <- function(
920927
x = "25",
921928
y = as.character(y_offset),
922929
"font-size" = "9",
930+
"font-family" = "Helvetica, Arial, sans-serif",
923931
"Exclusive"
924932
)
925933
} else if (has_value && has_pos) {
@@ -940,6 +948,7 @@ add_structure_legend <- function(
940948
x = "25",
941949
y = as.character(y_offset),
942950
"font-size" = "9",
951+
"font-family" = "Helvetica, Arial, sans-serif",
943952
"Co-occurring"
944953
)
945954
} else {
@@ -960,6 +969,7 @@ add_structure_legend <- function(
960969
x = "25",
961970
y = as.character(y_offset),
962971
"font-size" = "9",
972+
"font-family" = "Helvetica, Arial, sans-serif",
963973
"Linkage"
964974
)
965975
}

man/figures/README-structure-annotated.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)