Bit-mapped Japanese font parser
Details
| Size: | 20K |
| Last Update: | 2008-05-03 00:39:36 |
| Version: | 2.0 |
| OS Support: | Linux |
| License/Program Type: | GPL (GNU General Public License) |
| Publisher: | timecop |
| Price: | $0.00 |
Description:
Bit-mapped Japanese font parser 2.0 is fonts software developed by timecop.
Bit-mapped Japanese font parser is a font parser. Note, this package doesn't include the actual font data. To get the font data you need to download it from the download section in the left.
Then move .jfr into the directory where you unpacked this parser, and follow with the quick instructions.
Quick instructions:
Complete parse requires about 4 megabytes of free disk space. This is a huge improvement over the original version which required almost 45 megabytes.
1. make
2. make parse
3. watch the progress indicator
4. mv .pcf.gz /usr/X11R/lib/X11R6/fonts/misc
5. make clean
6. HUP your font server if you use one
7. xset fp rehash
8. xlsfonts | grep kanji
/usr/X11R/lib/X11R6/fonts/misc is the standard location for all sorts of random bit-mapped fonts, but you might have a special location. Substitute that in step 4.
About:
I came across a number of these "raster fonts" a while ago. Quick look inside the files proved that they are bit-mapped fonts, and the format looked pretty straight-forward. I wrote the original parser for these just guessing the values, basically by experimenting and playing around. Later on I came across some docs on the subject - looks like these fonts were used in Windows 3.1 Japanese edition to substitute back-then low quality Japanese TTF fonts at small point sizes. These were designed using full-scale 16 bit programming techniques.
Quick info about the font format, there are some headers, then follows a "segment table" which is basically a table with pointers inside the font file where to locate a particular chunk of data. Because the 16 bit way of accessing memory is by using 65k "segments", each file is virtually split into < 65k segments which get loaded into separate memory areas, and then there is a algorithm how to assemble whatever character by using the segment number and offset. Anyway, with 32 bit access all of that doesn't really matter. In my implementation I just mmap the whole file and read it all out of memory.
Generating table.h was a LOT of work! First, I took the codearea table out of one of the jfr files (this maps shift-jis code to the character number inside the font file), and extracted the number ranges. These were shift-jis, of course, and X uses jis0208. There is no converter from a shift
jis byte into jis0208. So I had to write one. Taking iconv, and some tables from glibc 2.1.93, I hacked together something which converted the shift-jis data into ucs4 (unicode, I guess) and then from that into jis0208. The code to the converter is about 500k thanks to the huge jis->unicode->jis conversion tables, and you won't need it unless you get a jfr font with a different encoding table (unlikely). Anyway. After I got the font format figured out and converted the character table, everything else was pretty easy. Note some bit hackery in the bitmapXX() functions which was necessary to present the font data in a usable format. Also notice cool use of function pointers to select a conversion function at runtime.
What's New in This Release:
This version uses correct JISX0208 tables, and is much faster.
Bit-mapped Japanese font parser 2.0 supports english interface languages and works with Linux.
Downloading Bit-mapped Japanese font parser 2.0 will take several seconds if you use fast ADSL connection.
0 comments
Downloadtube.com agrees that pirated software hurts software
developers and does not support such practices. We acknowledge and
agree that software piracy is theft. Using Bit-mapped Japanese font parser crack,
Bit-mapped Japanese font parser key generator, Bit-mapped Japanese font parser keygen, as well as any
pirated Bit-mapped Japanese font parser serial number/serial numbers and Bit-mapped Japanese font parser
registration code/codes, warez, keys, torrents, passwords, is illegal
and does not support the future development of Bit-mapped Japanese font parser.
Downloadtube.com advises that Bit-mapped Japanese font parser should be only used in
accordance with the rules of intellectual property and the existing
Criminal Code. Downloadtube.com does not allow the inclusion of any
crack, serial or keygen and disclaims any liability for the
inappropriate use of Bit-mapped Japanese font parser.
Add to
Bit-mapped Japanese font parser Version History
Related Software
|
|
From category: Desktop-Widgets |
| comics 0.2 is desktop widgets software developed by darius. comics is a simple karamba application to fetch daily comic strip to your desktop. It currently fetches dilbert, garfield, calvin, peanut... |
|
|
From category: Desktop-Widgets |
| CompactBlack Karamba 1.0 is desktop widgets software developed by hadrurus. CompactBlack Karamba is yet another simple system status SuperKaramba theme. Also included source svg file. \... |
|
|
From category: Desktop-Widgets |
| Cool Blue 1.0 is desktop widgets software developed by Xvoid. Cool Blue is a desktop widget for SuperKaramba for system monitoring. It has cool blue translucent background (which I made with... |
|
|
From category: Tools |
| The Launcher project is a minimalistic application launcher.... |
|
|
From category: Desktop-Widgets |
| Crystal Monitor 6.3 is desktop widgets software developed by Mihael Simonic. CrystalMonitor is SuperKaramba theme with: Guess distro In .py file is link to files, where are basic info... |
|
|
From category: Tools |
| gtk-kde4 is a small tool that allows you to change the GTK style in KDE 4.... |
|
|
From category: Fonts |
| fontutils 0.7 is fonts software developed by Karl Berry. GNU font utilities to allow conversion of a scanned type specimen image into an outline (PostScript or Metafont) font. These fonts can be us... |
|
|
From category: Tools |
| Crikey 0.5 is tools software developed by Akkana Peck. Crikey Map Strings to Keys is a program to generate key events under X11 on a Linux/Unix system, in order to provide a \"QuickKeys\"-like way... |
|
|
From category: Tools |
| Browser Bookmarks Menu 0.6 is tools software developed by Nigel Tao. Browser Bookmarks Menu is a small Gnome applet to allow easy access to your browser\'s bookmarks, even when your browser is not... |
|
|
From category: Desktop-Widgets |
| Date Calculator 0.1 is desktop widgets software developed by Matt Sarah. Date Calculator is a date calculator application written in pyqt. You can add or subtract days to a date, or calculate the n... |
|
|
From category: Desktop-Widgets |
| FlickerKaramba Interestingness 0.1 is desktop widgets software developed by boleyboley. FlickerKaramba Interestingness is another simple widget for displaying flickr photos. This one doesn\'t use t... |
|
|
From category: Tools |
| exifDate 0.4 is tools software developed by JJL. exifDate is a service menu that let&039;s you change modification date of jpeg images with the date from exif informations. So your images w... |
|
|
From category: Tools |
| CPU Info 0.5.2 is tools software developed by Ken Werner. CPU Info is a KDE kicker applet that shows the current CPU temperature and frequency. Make sure you have enabled the temperature ACPI kerne... |
|
|
From category: Themes |
| MurrinaBrit is a port of Elegant Brit to the Murrine engine, as suggested by chareos.... |
|
|
From category: Gnome |
| Gnome Menu Extended is a menu for the GNOME desktop with KDE and OpenOffice.org submenus for Gnome 2.10 or later.... |
Leave a comment