feat(android): Skia renders the text, so Arabic reads properly
An Arabic attachment name displayed scrambled. Not a missed setting: FMX's original text engine does not shape complex scripts - no bidirectional reordering, no letter joining. Separating the size from the name limited the damage without removing it. Skia carries HarfBuzz and does the work. GlobalUseSkia goes before Application.Initialize; the canvas is chosen at init and switching later does not reclaim what is already built. The price is libsk4d.so, 25 MB raw, and an APK from 13 to 22 MB. Deploy rebuilds library\\lib just before calling aapt, so a hand-placed library disappears. A proper DeployFile entry was tried first - MSBuild ignores it, as it ignores every other one in this project. Hence repack-apk.ps1, which redoes aapt, zipalign and signing on the folder already prepared. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -207,6 +207,16 @@ Ensuite `msbuild pmserverApk.dproj /p:Platform=Android64 /p:Config=Debug
|
||||
/t:Deploy` produit et signe `bin\pmserverApk.apk`, et `adb install -r` l'installe.
|
||||
Le correctif durable serait d'écrire ces entrées une fois dans le `.dproj`.
|
||||
|
||||
Enfin, **le rendu du texte passe par Skia**, ce qui ajoute `libsk4d.so` à
|
||||
livrer. `Deploy` reconstruit `library\lib` juste avant d'appeler `aapt`, donc
|
||||
toute bibliothèque posée à la main y disparaît — et les entrées de déploiement
|
||||
ne fonctionnent pas ici. D'où un dernier passage qui refait *aapt → zipalign →
|
||||
signature* sur le dossier déjà prêt, sans le vider :
|
||||
|
||||
```bash
|
||||
android-client\repack-apk.ps1
|
||||
```
|
||||
|
||||
> **Place disque.** Le `.so` de debug pèse **91 Mo** (symboles), et le volume
|
||||
> `Z:` n'en fait que 2 Go. Le dépouiller avec le `strip` du NDK le ramène à
|
||||
> 54 Mo, et l'APK final à 16 Mo — mais `strip` écrit sa copie temporaire **à
|
||||
|
||||
Reference in New Issue
Block a user