[update] update the tips for RTL&LTR in readme file

This commit is contained in:
PrinOrange
2024-08-12 12:05:59 +08:00
parent ec50c6e770
commit ff2bbb0326
2 changed files with 40 additions and 0 deletions

View File

@@ -172,6 +172,26 @@ To execute, simply run the script and specify the directory where you want to st
### FAQ
#### RTL & LTR
The default layout of this project is LTR. However, this project also supports RTL layout. If you are using Arabic, Persian, Hebrew, etc., please modify [\_document.tsx](./pages/_document.tsx) manually as following.
Change the Html tag
```tsx
<Html dir="ltr" lang="en">
{....}
</Html>
```
Into
```tsx
<Html dir="rtl" lang="en">
{....}
</Html>
```
#### Fonts
After extensive practical testing, this site primarily uses Chinese and English texts. Therefore, this project employs **Fangzheng Xiaobiaosong (for non-commercial use) and Source Han Serif Screen** as font resources. They display well on both mobile and PC screens, hence are used respectively for official titles and main text.