feat: retrieve system fonts on iOS and Android and show font weight variants, closes #949 and closes #557 (#976)

This commit is contained in:
Huang Xin 2025-04-26 23:37:04 +08:00 committed by GitHub
parent 9303ec8c5f
commit a424ae8b15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 254 additions and 84 deletions

View file

@ -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()
}