I have a UI with ‘Tahoma’ font 11px, but must linux computers do not have this particular font installed.
How do I include this font or any other font with my build so it will be displayed correctly in users application?
Script InstallTahoma.sh (needs internet access or include the font and modify the shell script):
#!/bin/bash
[ ! -f /usr/share/fonts/truetype/msttcorefonts/tahoma.ttf -o ! -f /usr/share/fonts/truetype/msttcorefonts/tahomabd.ttf ] &&
wget http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB &&
cabextract -F 'tahomattf’ IELPKTH.CAB &&
mkdir -p /usr/share/fonts/truetype/msttcorefonts/ &&
mv -f tahomattf /usr/share/fonts/truetype/msttcorefonts/ &&
chmod 644 /usr/share/fonts/truetype/msttcorefonts/tahoma* &&
fc-cache -v &&
rm -f IELPKTH.CAB &&
echo “Tahoma Font Installed”
Studio Stable Web Essentials has a new feature that attaches fonts to the app if you are doing a web app.
Yep, But I’m converting a windows desktop application to Linux deb and I haven’t found the best/easiest way. Using system font is not always an option.