Extremely frustrated trying to install a font.

1,014 views
Skip to first unread message

XnMojo

unread,
Jan 25, 2015, 4:29:20 AM1/25/15
to chromium-...@chromium.org
Hey,

I'm trying to install a font onto my Toshiba Chromebook in order to enhance my SSH experience. I'm using Google's Secure Shell extension to access the server.

I switched the computer to developer mode and disabled the rootfs verification. I then copied the .ttf file into the /usr/share/fonts directory, and it is now showing up as an option when I edit my Google Chrome font settings. It also shows when I use "fc-list" in the virtual terminal. 

Despite all of this, the font is still not usable. When I enter the new font into the "font-family" list within the Secure Shell extension options it continues to display the next font on the list. It is also missing when I test fonts on this website: http://wordmark.it/

During my many hours of fighting with this issue I found this issue report: https://code.google.com/p/chromium/issues/detail?id=320364 I've attempted to follow the advice of some of the users, but I'm not great with linux and their instructions aren't very clear.

Please let me know if there is anything I can do to explain my issue more clearly.

Any tips, advice or help you can provide would be amazing. Thanks!

Mike Frysinger

unread,
Jan 25, 2015, 8:17:06 AM1/25/15
to cmoja...@gmail.com, Chromium OS discuss
the font cache is generated once at build time and never again.  you probably need to rebuild the cache after you add your new fonts.

that said, SecureShell supports webfonts:
-mike

--
--
Chromium OS discuss mailing list: chromium-...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-discuss?hl=en


XnMojo

unread,
Jan 25, 2015, 9:03:17 AM1/25/15
to chromium-...@chromium.org, cmoja...@gmail.com
I used the command:
sudo fc-cache -fv
to update the fonts cache, which clearly saw my font and cached it.
Still SecureShell does not pick up the font.

Mike Frysinger

unread,
Jan 25, 2015, 9:32:10 AM1/25/15
to cmoja...@gmail.com, Chromium OS discuss
did you restart the UI after regenerating the font cache ?

i think you should look to using webfonts instead as that is a supported method and doesn't require modifying the rootfs.
-mike

XnMojo

unread,
Jan 25, 2015, 5:20:56 PM1/25/15
to chromium-...@chromium.org, cmoja...@gmail.com
I did restart the UI. I am trying to use this font: http://strlen.com/square which is not available through google's webfonts thing.

Thanks again for your help.

Mike Frysinger

unread,
Jan 25, 2015, 5:55:23 PM1/25/15
to Christian Mojallali, Chromium OS discuss
webfonts are a CSS standard and not Google specific ... in fact, it's older than Google itself ;).  as the Google Fonts page itself explains, the site is meant purely to make using web fonts easier:

there are websites that'll convert TTF files into webfonts for you.
-mike

XnMojo

unread,
Jan 27, 2015, 12:01:23 PM1/27/15
to chromium-...@chromium.org, cmoja...@gmail.com
continuing to be extremely frustrated...
per your recommendation I created a webfont and uploaded it to my website along with a .css file

This still does not work in SecureShell, but it does work on my website.

Mike Frysinger

unread,
Jan 27, 2015, 12:51:36 PM1/27/15
to Christian Mojallali, Chromium OS discuss
this most likely is an error on your server.  go to the secure shell options page and open an inspector:
chrome-extension://okddffdblfhhnmhodogpojmfkjmhinfp/html/nassh_preferences_editor.html
ctrl+shift+j
enter your font settings, then reload the page (ctrl+r)

see if there is an error in the console like:
Font from origin 'http://wh0rd.org' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'chrome-extension://okddffdblfhhnmhodogpojmfkjmhinfp' is therefore not allowed access.

if so, your server needs fixing.  google for that error message for tips on how to fix your server.  a simple wget on your server indicates that is indeed the problem:
--2015-01-27 12:43:51--  http://www.xnmojo.com/fonts.css
Resolving www.xnmojo.com (www.xnmojo.com)... 74.116.84.200
Connecting to www.xnmojo.com (www.xnmojo.com)|74.116.84.200|:80... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 200 OK
  Date: Tue, 27 Jan 2015 17:43:51 GMT
  Server: Apache
  Last-Modified: Tue, 27 Jan 2015 17:43:51 GMT
  Accept-Ranges: bytes
  Content-Length: 277
  Connection: close
  Content-Type: text/css
Length: 277 [text/css]
Saving to: ‘fonts.css’

you aren't providing a Access-Control-Allow-Origin header anywhere
-mike

XnMojo

unread,
Jan 27, 2015, 1:24:36 PM1/27/15
to chromium-...@chromium.org, cmoja...@gmail.com
really sorry to keep bugging you. I've now added the Access-Control-Allow-Origin header.
Now I get the error:

GET chrome-extension://pnhechapfaindjhompbnflcldabbghjo/html/'http://xnmojo.com/fonts.css' net::ERR_FILE_NOT_FOUND

Mike Frysinger

unread,
Jan 27, 2015, 1:49:04 PM1/27/15
to Christian Mojallali, Chromium OS discuss
you sure you pasted the URL correctly ?  if i put "http://xnmojo.com/fonts.css" into the user css field and change font-family to Conv_VGA8, it's working for me.
-mike

XnMojo

unread,
Jan 27, 2015, 1:59:42 PM1/27/15
to chromium-...@chromium.org, cmoja...@gmail.com
I had single quotes around the url, guess that was the issue. 
I'm officially up and running.
Thank you SO much for all your help!
Reply all
Reply to author
Forward
0 new messages