mirror of
https://github.com/readest/readest.git
synced 2026-04-29 03:50:52 +00:00
feat: retrieve system fonts on iOS and Android and show font weight variants, closes #949 and closes #557 (#976)
This commit is contained in:
parent
9303ec8c5f
commit
a424ae8b15
25 changed files with 254 additions and 84 deletions
|
|
@ -58,3 +58,10 @@ pub(crate) async fn get_status_bar_height<R: Runtime>(
|
|||
) -> Result<GetStatusBarHeightResponse> {
|
||||
app.native_bridge().get_status_bar_height()
|
||||
}
|
||||
|
||||
#[command]
|
||||
pub(crate) async fn get_sys_fonts_list<R: Runtime>(
|
||||
app: AppHandle<R>,
|
||||
) -> Result<GetSysFontsListResponse> {
|
||||
app.native_bridge().get_sys_fonts_list()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue