Skip to content

Commit 4042664

Browse files
authored
Merge pull request #439 from StephenMcConnel/BL-11186-MissingTitleCharacter
Add Andika to default font-family list for display (BL-11186)
2 parents 403e291 + c9940fb commit 4042664

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/App.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ export const App: React.FunctionComponent<{}> = (props) => {
3636
flex-direction: column;
3737
margin-left: 0;
3838
height: 100%;
39+
// CssBaseLine changes the default font-family from what is set in index.css,
40+
// so we change it here again to what we want, which is Andika added to this
41+
// list of sans-serif fonts. (BL-11186)
42+
font-family: Roboto, Noto, Andika, "Open Sans",
43+
sans-serif;
3944
`}
4045
>
4146
{/* <React.StrictMode>

src/index.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ body,
2323
h1,
2424
h2,
2525
h3 {
26-
font-family: "Roboto", "Noto", sans-serif;
26+
/* This default font list is duplicated in App.tsx because <CssBaseLine/> effectively
27+
* installs another font-family list for body. We need Andika in the list to cover
28+
* some new/rare characters used by some languages. (BL-11186) */
29+
font-family: "Roboto", "Noto", "Andika", "Open Sans", sans-serif;
2730
}
2831
h1 {
2932
text-align: left;

0 commit comments

Comments
 (0)