CEF OSR Linux ko/jp symbols are shown as blank rect in snap

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF OSR Linux ko/jp symbols are shown as blank rect in snap

Postby Scurry » Thu Feb 15, 2024 3:15 pm

Hi, I encountered issue that languages like Korean and Japanese(probably Chinese) are displayd as blank rectangle when running inside app via OSR mode in snap, but it's perfectly fine when running same app on desktop.
When running in ubuntu core via snap
Screenshot from 2024-02-15 22-08-51.png
Screenshot from 2024-02-15 22-08-51.png (682.41 KiB) Viewed 277 times

When testing app on desktop
Screenshot from 2024-02-15 22-06-24.png
Screenshot from 2024-02-15 22-06-24.png (407.92 KiB) Viewed 277 times


I thought that it could be locales, so I tried to point app where loacles folder is located:
Code: Select all
 CefString(&cefs.locales_dir_path) = bundle_path + "/lib";
 CefString(&cefs.resources_dir_path) = bundle_path + "/lib";

But for some reason app started to crash at the beginning complaining it fails to find locale for en-US, so it was actually finding locales .pak files without help ( everything located near icudtl.dat file, so from my understanding it starts lookup from that folder)
Scurry
Techie
 
Posts: 26
Joined: Tue Nov 15, 2022 10:17 am

Re: CEF OSR Linux ko/jp symbols are shown as blank rect in s

Postby Scurry » Mon Feb 19, 2024 8:22 am

Resolved, issue was that snap didn't contain needed fonts - I installed them through stage-packages also added env variables mentioned here https://bugs.launchpad.net/ubuntu/+sour ... ug/1576303
Scurry
Techie
 
Posts: 26
Joined: Tue Nov 15, 2022 10:17 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 208 guests