LAMW -*.otf font supports? lazarus / 43-Android ---------------------------------------------------------------------- Mongkey · 2022-01-31 06:17 Has anyone tried parsing font with otf extention on LAMW? Thank you.. This topic about caching otf fonts on lazarus: https://forum.lazarus.freepascal.org/index.php?topic=33141.0 ---------------------------------------------------------------------- engkin · 2022-01-31 13:26 Based on the thread you linked, it should work. Did you try it? ---------------------------------------------------------------------- Mongkey · 2022-02-05 05:31 Already tried but failed ---------------------------------------------------------------------- engkin · 2022-02-06 03:54 I just tried, and it works! Here is what I did: 1-I put an otf font file in a folder.       Copied NotoSansAhom-Regular.otf to /storage/emulated/0/Download/FONTS/ 2-Adapted the test from the link you have to: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure Test_OTF(const APath:String);var  CacheList : TFPFontCacheList;  CacheItem : TFPFontCacheItem;  i: integer;begin  try    CacheList := TFPFontCacheList.Create;     CacheList.SearchPath.Add(APath);    CacheList.BuildFontCache;     Log('CacheList.Count: '+CacheList.Count.ToString);    for i := 0 to CacheList.Count-1 do    Log(CacheList.Items[i].PostScriptName);     CacheItem := CacheList.Find('NotoSansAhom-Regular');    if CacheItem<>nil then    Log('CapHeight: '+IntToStr(CacheItem.FontData.CapHeight))    else    Log('CacheItem is NIL');   except    Log('An error occurred...');    CacheList.Free;  end;end; of course, don't forget to add unit fpTTF to the uses section. Log is a simple function to add the text to a jEditText Call Test_OTF with the correct path. Notice the path is case- sensitive. 3-Gave the app storage permission. ---------------------------------------------------------------------- Mongkey · 2022-02-12 05:05 Thank you