Question: How do I install TrueType fonts (ttf) on my xo laptop?
Issues Resolved:
  1. Reading mathematics written with jsMath
  2. Reading "lean" pdf files - i.e. pdfs with non-embedded fonts.
  3. Reading pages written in locally designed ttf fonts.

Note: I could not get the XO to recognize my USB flash so I used an SD card instead.

Installing TrueType Fonts on your XO Laptop - Fastest method
A. You will need:  1. Your XO Laptop, 2. An SD card or a USB flash drive with the truetype fonts on it.*
B. Using another computer, copy the fonts you need to an SD card or USB flash drive.
If you are downloading a archived package of fonts (e.g. type *.zip or *.tar), you need to unpack them.
Result: On your SD/flash, all the fonts you want to install should be listed with type "ttf" .
Plugging in the SD/flash into your XO
  • Turn on your XO laptop.
  • Go to Journal.
Move your mouse to the top of the screen. The four circle icons will appear.

Click on "Home" - circle with ONE dot - . Home screen will appear.
Click on "Journal" - notebook - . Journal listing will appear.

  • Twist the monitor of your XO counterclockwise and insert your SD card (under the power button) (or insert USB flash). See picture
Result: An icon of an SD card (or USB flash) should appear at bottom of screen.    
Give it 30s. If you don't see the icon, remove card/flash and reinsert. If still nothing - XO is not recognizing it.
Getting the info on your SD/flash.
  • Move your mouse pointer over the SD/flash icon. A popup menu will appear with the name of your SD/flash and the command "unmount". Write down the naMe of your device (it is case sensitive)!
  • Click on the ICON - don't click on the name or on "unmount".
Result: You get a listing of the contents of your SD card. Check that your ttf files are listed.
If you don't get a file listing, this means the XO has not recognized your SD card or USB flash.
Directories (folders) on the XO
  • Go to terminal.
Move your mouse to the bottom of the screen. The long list of activities will appear.

Click on the arrow at the right. Another long list of activities will appear.
Click on "Terminal" - $ page - . Terminal will appear.

Notice that the cursor is in the search field at top. In the white space below, there are a bunch of numbers followed by [].
  • Click somewhere by the brackets. The cursor will go there.
  • Type su and hit enter. The prompt will change to something like -bash-3.2# Sept08
You are now a "root in terminal". Follow directions carefully ... More information about Terminal
  • You are in the directory olpc. If you type dir and hit Enter you should see the folders: Activities and myLogs
Finding the font directory   Directory Structure Image
  • You are in the directory olpc. If you type dir and hit Enter you should see the folders: Activities and myLogs
  • Now type df and hit enter. At the bottom right of this listing you should see your SD/flash listed as /media/naMe
The following commands will get you to the directory /usr/share/fonts and create the subdirectory truetype
  • type cd /usr/share/fonts and hit enter. You are now in the directory /usr/share/fonts   Details
cd is the "change directory" command; the "/" at the beginning means start at bottom most directory (root of filing system).
If you want to walk to this directory from the olpc do the following. At each step you can type dir and hit enter to see the contents.
  • type cd .. (there is a blank between cd and ..) and hit enter. You are now in the directory /home.
  • type cd ..  and hit enter. You are now in the bottom-most directory.
  • type cd usr and hit enter. You are now in the directory /usr
  • type cd share and hit enter. You are now in the directory /usr/share
  • type cd fonts and hit enter. You are now in the directory /usr/share/fonts
  • type mkdir truetype and hit enter. With this we create the directory truetype
  • type cd truetype and hit enter. You are now in the directory /usr/share/fonts/truetype
Copy the files
The following command will copy all *.ttf files from your SD/flash into this directory. Remember to substitute the name of your SD/flash exactly as it appeared above (case sensitive).
Now I am NOT sure if the following command is necessary. I was working from this page - but of the three commands given in #5 and #6 only this command was accepted. (If you want, you can try restarting without it and if it doesn't work come back to this subdirectory and type it in.)
  • type fc-cache and hit enter
  • Click on to close terminal activity.
Unmount (properly disconnect) your SD/flash
  • You are probably at the home screen - if not move your mouse to the top of your screen and choose the circle with single dot.
  • Click on the journal icon
  • Roll your mouse over the SD/flash icon at the bottom of this screen. The popup menu will appear with the SD/flash name and the command: unmount.
  • Click on unmount.
  • When the SD/flash icon dissappears, you can physically unplug your SD/flash storage.
Shut down and restart your XO laptop
  • Shut down your XO laptop.
Go to Home screen. Move your mouse to the xo in the middle of the screen. The popup menu will appear.
  • Click on "Shut down".
  • After your xo shuts down, wait 30 seconds and restart it.
  • Browse a page or open an application and check that your fonts work. Here are some links to check jsMath.

Systems of Linear Equations 2x2   pmWiki and jsMath  Sample Page from jsMath Site

 

* If you must download the font files directly to your XO laptop, follow these directions to get them unpacked and onto your SD/flash. Then continue as from above.

 

BTW: Without doing anything, my XO reads cyrillic fonts. (I live in FYR Macedonia where the cyrillic alphabet was founded and used.) However, I still cannot get it to type cyrillic fonts.

BTW: I need to run Java applets on my XO from GeoGebra and Scratch (FOSS).

Please write me if you know anything about these issues.


Related Topics:


 Up one level


Page last modified on October 09, 2008, at 09:24 AM