• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

README.ohsnapH A D03-Aug-20123.4 KiB7852

README.ohsnap

1Ohsnap is a monospaced bitmap font based on Artwiz Snap (http://artwizaleczapka.sourceforge.net/).
2
3There are ISO8859-1 versions, versions with status icons, consolefonts and I started working on ISO10646-1 versions. All have bold too.
4There are four sizes now: 6x11, 7x12, 6x13 and 7x14.
5
6each size has 8 fonts, for example:
7ohsnap6x11r.pcf (6x11 medium iso8859-1)
8ohsnap6x11b.pcf (6x11 bold iso8859-1)
9ohsnap6x11r.icons.pcf (6x11 medium with status icons)
10ohsnap6x11b.icons.pcf (6x11 bold with status icons)
11ohsnapu6x11r.pcf (6x11 medium iso10646-1)
12ohsnapu6x11b.pcf (6x11 bold iso10646-1)
13ohsnap6x11r.psfu (6x11 medium consolefont)
14ohsnap6x11b.psfu (6x11 bold consolefont)
15
16You can use xfontsel to get the full names.
17
18To install manually system-wide, copy the .pcf files to /usr/share/fonts/local and the .psfu files to /usr/share/kbd/consolefonts.
19
20Then do:
21sudo fc-cache -fs
22sudo mkfontscale /usr/share/fonts/local
23sudo mkfontdir /usr/share/fonts/local
24
25And make sure you have something like this in your .xinitrc:
26xset +fp /usr/share/fonts/local
27xset fp rehash
28
29I would recommend trying to use the ISO10646-1 versions first and use the ISO8859-1 versions as fallback.
30
31To use the ISO10646-1:
32-*-ohsnapu-medium-r-normal-*-11-*-*-*-*-*-*-*
33-*-ohsnapu-bold-r-normal-*-11-*-*-*-*-*-*-*
34
35For the ISO8859-1:
36-*-ohsnap-medium-r-normal-*-11-*-*-*-*-*-*-*
37-*-ohsnap-bold-r-normal-*-11-*-*-*-*-*-*-*
38
39The icon versions have status "icons" that I drew into the font. The inspiration for the icons came from lokaltog (https://github.com/Lokaltog) and his post in the dwm
40(http://dwm.suckless.org) hackers thread on the Arch Linux forums (https://bbs.archlinux.org/viewtopic.php?pid=724236#p724236).
41
42To use the icon versions:
43-*-ohsnap.icons-medium-r-normal-*-11-*-*-*-*-*-*-*
44-*-ohsnap.icons-bold-r-normal-*-11-*-*-*-*-*-*-*
45
46You can use xfd to view the font. (xfd -fn -misc-ohsnap.icons-medium-r-normal--11-79-100-100-c-60-iso8859-1)
47
48From a terminal, you can do something like:
49echo -e '\xB7' to display a clock icon for example and then copy the output to a script or your config.h.
50
51You can also use pcf2bdf to convert the .pcf fonts to .bdf and then use gbdfed (http://sofia.nmsu.edu/~mleisher/Software/gbdfed/) to view and edit the font.
52To convert from .pcf to .bdf: (pcf2bdf -o ohsnap6x11r.bdf ohsnap6x11r.pcf).
53Then use bdftopcf to convert it back: (bdftopcf -o ohsnap6x11r.pcf ohsnap6x11r.bdf).
54Reinstall.
55
56You can check out the ohsnap thread on the forums (https://bbs.archlinux.org/viewtopic.php?id=130562&p=1) for screenshots and discussion.
57
58A better solution for icons (at least for dwm, which I originally made these for) might be to use stlarch_font (https:sourceforge.net/projects/stlarch_font/).
59See the README.stlarch for more info.
60
61To try the consolefont, you can do: setfont ohsnap6x11r for example. See your distros documentation for a more permanent solution.
62
63Created by stlarch (stlarchie@gmail.com)
64
65Released under GPLv2 license. (http://www.gnu.org/licenses/gpl-2.0.html)
66
67Changes in version 1.7.5: Added consolefonts and ISO10646-1 versions and dropped the 8x15 and 8x17 sizes.
68
69Changes in version 1.7.6: Fixes.
70
71Changes in version 1.7.7: A few more fixes to the 6x11 bold.
72
73Changes in version 1.7.8: A couple fixes to the iso10646-1 versions.
74
75Changes in version 1.7.9: Added a new size, 6x13, and a few other changes, mainly to the 7x14.
76
77Changes in version 1.8.0: Fixed the mapping table on the consolefonts.
78