![]() |
HowTo: freetype with bytecode interpreter enabled
A more complete version of this guide is now available at:
http://internettablettalk.com/wiki/i...de_interpreter HowTo: freetype library with bytecode interpreter enabled I was asked to explain how to enable freetype with the bytecode interpreter in a private message. So here goes. WARNING: DO NOT TRY THIS FOR IT WILL UNDOUBTABLY GO WRONG FOR YOU AND YOU WILL HAVE TO REFLASH YOUR DEVICE LOSING ALL YOUR SETTINGS!!! 1. Download the freetype source code, read the readme, enable the interpreter and compile the library. OR 1. Download the library prepared by me. I have used it on my n800 for both the 2007 and 2008 OS, although it was compiled under the 2007 OS. The following steps require you to be root: 2. Copy the file libfreetype.so.6.3.16 (version number may vary if you compiled it yourself) to /usr/lib from wherever you saved it (the following command assumes you are in the directory you saved the file to). cp libfreetype /usr/lib/ Move to the /usr/lib directory to complete the task. cd /usr/lib You may need to change permissions on the file: chmod 644 libfreetype.so.6.3.16 3. Remove the old link to the library with the command: rm libfreetype.so.6 4. Create a new link to the new library: ln -s libfreetype.so.6.3.16 libfreetype.so.6 5. OPTIONAL: Copy any new fonts you wish to use to /home/user/.fonts/ (this is a directory, you may have to create it first). mkdir /home/user/.fonts 6. OPTIONAL: Create or edit /home/user/.fonts.conf (this is a text file). In it you can set the font size to begin antialiasing, etc. My file looks like this: Code:
<?xml version="1.0"?>TO UNDO THIS CHANGE: Delete the link and recreate it to the original library and reboot. cd /usr/lib rm libfreetype.so.6 ln -s libfreetype.so.6.3.10 libfreetype.so.6 |
Re: HowTo: freetype with bytecode interpreter enabled
sorry im a noob, but wtf is freetype and bytecode :S and what does this tutorial do?
|
Re: HowTo: freetype with bytecode interpreter enabled
Quote:
coffeedrinker, stick this in the wiki ASAP. It's just going to get buried the the forums. |
Re: HowTo: freetype with bytecode interpreter enabled
Any screenshots or font tips? I tried this some time ago with 770/OS2006 and the results were not great. It worked for fonts copied from Windows but some other tablet fonts looked worse. Also I wanted it mainly for Opera which ignored it anyway. This may be different with Microb now.
|
Re: HowTo: freetype with bytecode interpreter enabled
I don't know how to wiki it but I'll look into it. If I can't maybe someone could copy it there.
I posted info about this in a thread back in August and posted a screen shot there. http://internettablettalk.com/forums...ead.php?t=8396 I use Microsoft fonts but the Nokia font looks beautiful too, nice and sharp. The fonts basically can look like Windows fonts with the cleartype turned off, so no blurry edges. |
Re: HowTo: freetype with bytecode interpreter enabled
Quote:
Quote:
|
Re: HowTo: freetype with bytecode interpreter enabled
Well, I put up a wiki here:
http://internettablettalk.com/wiki/i...de_interpreter but I don't know how to do the code block for the fonts.conf file. Maybe someone could fix that up :) Antilles, you need to remember that I'm twice your age and *need* my fonts very sharp. My first computer had nice green fonts on a black screen with less resolution than my n800 :) |
Re: HowTo: freetype with bytecode interpreter enabled
3 Attachment(s)
coffeedrinker, thank you for the patched library and great How-To. Now fonts (espatially in microb, are much better). Also I add changes in priority of font selection. Default fonts are not looking well without antialiasing. I add Tahoma, Verdana, Lucida Console, Times New Roman and some others (from Win XP, not! from Vista) to /usr/share/fonts/corefonts and add local.conf to /etc/fonts for prioritaze corefonts.
local.conf Code:
xml version="1.0"?> |
Re: HowTo: freetype with bytecode interpreter enabled
Well, another thing I did under 2007 was to change the fonts for the whole system. I haven't got around to this yet in 2008.
Basically, you can just edit the default theme in /usr/share/themes/ (this is different in 2008 which uses a link to the theme directory). So just copy the theme you like, link to it and then edit the theme. You change the font name in the theme file (gtkrc in the gtk-2.0 directory) and and delete the .cache file for the change. Like I said, I haven't messed with all this in 2008 yet, so poke around a little. |
Re: HowTo: freetype with bytecode interpreter enabled
Here is how to *easily* fix your system fonts in OS 2008. No theme editing required. It will not change the sizes but will use a different font.
In your /home/user/.fonts.conf file add: <match target="pattern" > <test name="family" qual="any" > <string>Nokia Sans</string> </test> <edit mode="assign" name="family" > <string>Tahoma</string> </edit> </match> Of course, instead of Tahoma use the font you prefer. |
| All times are GMT. The time now is 02:31. |
vBulletin® Version 3.8.8