Ubuntu snap packaging with Qt: fonts missing

I have binary and all resolved Qt dependencies packaged in tar.gz. I am using next yaml file for snap:

name: sample_name_lol_1 base: core18 version: '1.0.0' summary: sample_summary_lol_2 description: |   sample_desc_lol_3  grade: devel confinement: devmode  parts:   sample_name_lol_1:     plugin: dump     source: MyApp.tar.gz     stage-packages: [       ffmpeg,       x264,       x265,       libopencv-core-dev,       libopencv-imgproc-dev,       libopencv-calib3d-dev,       libblas-dev,       liblapack-dev,       libfontconfig1-dev,       fonts-freefont-ttf,       ttf-ubuntu-font-family     ]  apps:     MyApp:         command: MyApp         environment:           LD_LIBRARY_PATH: $  LD_LIBRARY_PATH:$  SNAP/usr/lib/x86_64-linux-gnu/blas:$  SNAP/usr/lib/x86_64-linux-gnu/lapack 

Normal application run (say from regular unpacking tar.gz) would give me information about all fonts available on the system. However snap run (sample_name_lol_1.MyApp) won’t see system fonts, only few of them (only 3 to be precise – sans, sans-serif, monospace). I found path after installation, /snap/sample_name_lol_1/x1/usr/share/fonts and /snap/sample_name_lol_1/x1/etc/fonts. Those places are read-only and I can’t figure out, what exactly should be done, so Qt application will able to see at lease standard Ubuntu font.

Missing Wine Japanese fonts

Installed many Japanese fonts based on forums/here posts

apt install fonts-thai-tlwg fonts-wqy-zenhei fonts-takao fonts-nanum apt install ttf-mscorefonts-installer fc-cache -f -v 

And the Japanese (old) program shows better (most text readable)

ringØ@ubuntu:~/.wine/drive_c$   LANG=ja_JP.UTF-8 wine so702i_usb_driver_xp.exe 

(Note: tried other charsets on the command line above, jis, shift-jis, euc-jp, utf-16)

enter image description here

However, there are still some fonts missing (“squares” text).

Is there a way to identify which font(s) are missing from wine?

ttf mscorefonts broke Firefox and Chrome Fonts

16.04 user. I thought this was a Firefox issue only, and removed ttf mscorefonts. After removal, most sites went back to displaying fonts as they’re supposed to, but not all. When I log in as guest, those sites which look funky look just fine. After a couple of hours i realized the exact same issue shows up on chrome too. Tried re-installing and then uninstalling mscorefonts as well. No luck.

I’ve fiddled around with fonts.conf in etc/fonts and 51-local.conf in etc/fonts/conf.avail – no fix, so I left them as is.

Any help is much appreciated.

Ubuntu 18.04 fonts are very small

Hi I recently installed Ubuntu 18.04.However fonts on some programs are very small.For instance when I run Notepad++ texts like settings are incredibly small despite changing the font size from the menu.On Chrome or Spotify I can do CTRL++ and that works but it is not a correct solution because it is not system wide and in some programs that shortcut doesn’t work.I tried changing fonts on Gnome Tweak Tool and that effected many programs and after changing the scaling from the gnome tweak tool now fonts on many programs are generally okay.However for programs like Notepad++ and Unity3D it doesn’t work. I could make font 24 on tweak tool and font on tweak tool would be huge.Than when I go to let’s say Notepad++ everything is still same.In Unity3D I can see that header texts like Window,Help etc is large now but all the other text is still very small.On all the other IDEs it works fine.Thanks for the help.I also enabled Large Text from Universal Access.

AWS S3 keep throwing 403 forbidden on Font awesome 5 web fonts files

I’m using Font awesome 5 in my application. Every time running “eb deploy”, Font awesome icons show up with squares and throw 403 forbidden on the console. To fix that, I make the web fonts files having extensions such as .woff and .woff2 to be public by doing “Make public”.

The problem is I need to repeat this every time running “eb deploy”. Is there a way to fix that?

Why monospaced fonts are not used as frequently as serif and sans-serif fonts, outside coding?

We see sans-serif and serif fonts everywhere, from the web to printed books and newspapers. I’m wondering why monospaced fonts are not popular outside coding context?

Here is a simple comparison I made using Pair & Compare:

We know that for monospaced fonts, letters and characters each occupy the same amount of horizontal space. Doesn’t this make monospaces fonts easier to read?

Not Preloading Self Hosted Fonts

I’m trying to preload fonts that are hosted on my site in the “fonts” folder. I received the following message in Google’s Lighthouse:

Consider using <link rel=preload> to prioritize fetching late-discovered resources sooner.

/fonts/bowlbyone-regular-webfont.woff2(www.name of site.com)
1,380 ms
/fonts/raleway-light-webfont.woff2(www.name of site.com)
1,380 ms

I added the following code directly above the </header> on each html page:

<link rel="preload" href="/fonts/bowlbyone-regular-webfont.woff2" as="font">
<link rel="preload" href="/fonts/raleway-light-webfont.woff2" as="font">

But, I’m still receiving the Lighthouse message to preload the .woff2 fonts. Any suggestions? Thanks!