You are not logged in.

#51 2012-05-12 16:08:42

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: Ohsnap I made another font (based on artwiz snap)

Well, I have the consolefonts working now. Just give me a week or two to get it all together. I want to go through everything on this font and termsyn.

Offline

#52 2012-05-12 16:52:40

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,472
Website

Re: Ohsnap I made another font (based on artwiz snap)

Sure, take your time!


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#53 2012-05-12 17:08:09

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

Re: Ohsnap I made another font (based on artwiz snap)

Is it possible to use the symbol glyphs in conky?  I haven't been able to figure it out.  I get either nothing or a box.

Offline

#54 2012-05-13 03:35:29

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: Ohsnap I made another font (based on artwiz snap)

Hi, check the previous page in this thread to see how to do it.

Offline

#55 2012-05-13 11:34:40

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

Re: Ohsnap I made another font (based on artwiz snap)

stlarch wrote:

Hi, check the previous page in this thread to see how to do it.

In my conkyrc:

use_xft yes
xftfont onsnap.icons:pixelsize=11
...
TEXT
...
${execi 1800 echo -e \\xBA} ${execpi 600 ~/bin/scripts/pacman.py}
...

This does not work. Everything after that "echo" bit does not show up.

Offline

#56 2012-05-13 11:40:29

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,472
Website

Re: Ohsnap I made another font (based on artwiz snap)

Why don't you use printf as suggested and just copy the glyph in as text?

printf '\xBA'

If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#57 2012-05-13 12:01:20

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

Re: Ohsnap I made another font (based on artwiz snap)

Unia wrote:

Why don't you use printf as suggested and just copy the glyph in as text?

printf '\xBA'

That gives me the same result, actually.  That glyph and everything after it do not show up.

My whole conky rc file:

double_buffer yes
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorate,sticky,skip_taskbar,skip_pager

draw_borders no
border_margin 3

draw_shades no

gap_x 0
gap_y 2
alignment top_left

update_interval 1

default_color 8f8f8f
color2 e0e0e0
color3 4abcd4
own_window_colour 262729

use_xft yes
xftfont ohsnap.icons:pixelsize=11

uppercase yes

override_utf8_locale yes

use_spacer none
minimum_size 1680 0

TEXT
${alignc}cpu $cpu%         \
mem $mem ($memperc%)         \
root ${fs_used_perc /}%  home ${fs_used_perc /home}%         \
º ${execpi 600 python2 ~/bin/scripts/pqu.py}         \
vol ${execi 5 amixer sget Master|sed -ne 's/^.*Mono: .*\[\([0-9]*\)%\].*$/\1/p'}%         \
wolf ${execpi 300 python2 ~/bin/scripts/gmail_wolf.py}\
  ian ${execpi 300 python2 ~/bin/scripts/gmail_ian.py}         \
${time %a %d %b}  $color2${time %H:%M}

[Edit: It turns out that if either of the gmail scripts return something other than 0, that return value shows up, and then the date and time also show up.]

Last edited by ibrunton (2012-05-13 12:05:18)

Offline

#58 2012-05-13 13:54:06

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: Ohsnap I made another font (based on artwiz snap)

Here's my conkyrc from dminiwm

background yes
use_xft no
font -*-terminusmodx.icons-medium-r-normal-*-12-*-*-*-*-*-*-*
double_buffer yes
use_spacer left
gap_x 562
gap_y 587
update_interval 1

default_color 7f7f7f
color0 b3b3b3
color1 4ba65a
color2 ff950e

TEXT
${color0}${iconv_start UTF-8 ISO_8859-1}µ${iconv_stop}${color} ${battery_percent BAT1}%  \
${downspeedf eth0}K/s ${color0}${iconv_start UTF-8 ISO_8859-1}Ú${iconv_stop}${color}\
${upspeedf eth0}K/s ${color0}${iconv_start UTF-8 ISO_8859-1}Û${iconv_stop}${color}    \
${color0}${iconv_start UTF-8 ISO_8859-1}Ç${iconv_stop}${color} ${cpu cpu0}%    \
${goto 831}${color0}${iconv_start UTF-8 ISO_8859-1}Î${iconv_stop}${color}${memfree}  \
${color0}${iconv_start UTF-8 ISO_8859-1}±${iconv_stop}${color}${hwmon temp 1}${iconv_start UTF-8 ISO_8859-1}°${iconv_stop}  \
${color0}${iconv_start UTF-8 ISO_8859-1}í${iconv_stop}${color} ${mixer vol}%  \
${color0}${iconv_start UTF-8 ISO_8859-1}º${iconv_stop}${color} ${time %I:%M}

I was using terminusmodx for the font so the icons may be in different positions.

Last edited by stlarch (2012-05-13 14:06:16)

Offline

#59 2012-05-13 15:34:05

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

Re: Ohsnap I made another font (based on artwiz snap)

It turns out that with

use_xft no

and the full font declaration like you've got, stlarch,

${execi 1800 echo -e \\xba}

works perfectly.  Thanks!

Offline

#60 2012-05-15 08:59:29

rg_arc
Member
From: Hattiesburg
Registered: 2011-03-20
Posts: 490
Website

Re: Ohsnap I made another font (based on artwiz snap)

I installed this font from the AUR using pacman... I can't find the font anywhere... how can I use this elusive font?

Offline

#61 2012-05-15 14:45:31

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Ohsnap I made another font (based on artwiz snap)

rg_arc wrote:

I installed this font from the AUR using pacman... I can't find the font anywhere... how can I use this elusive font?

What are you trying to use it with, and how?

Offline

#62 2012-05-15 20:57:47

theGunslinger
Member
Registered: 2011-05-20
Posts: 299

Re: Ohsnap I made another font (based on artwiz snap)

rg_arc wrote:

I installed this font from the AUR using pacman... I can't find the font anywhere... how can I use this elusive font?

I've learned that the best way to get all of your fonts recognized is to add the fonts folders to your xorg.conf file. It's fully explained in the Fonts wiki.

Online

#63 2012-05-15 21:59:41

rg_arc
Member
From: Hattiesburg
Registered: 2011-03-20
Posts: 490
Website

Re: Ohsnap I made another font (based on artwiz snap)

@ANOKNUSA I am just trying to see if I can use it in Gnome-Terminal. I go into the preferences and see if the font is available... usually fonts I have downloaded are available after I install them and reboot.

@theGunslinger Noted, however, I can't find this font I installed from AUR anywhere. I can't find the file I downloaded to put it somewhere I want in the first place.

Offline

#64 2012-05-15 22:05:55

Psykorgasm
Member
From: England, UK
Registered: 2011-11-24
Posts: 158

Re: Ohsnap I made another font (based on artwiz snap)

PKGBUILD wrote:

install -m644 * "$pkgdir/usr/share/fonts/local/"

Have you looked there? big_smile

Offline

#65 2012-05-16 02:28:45

rg_arc
Member
From: Hattiesburg
Registered: 2011-03-20
Posts: 490
Website

Re: Ohsnap I made another font (based on artwiz snap)

ah... that is where its located.. thanks.

also, I don't even have a /etc/X11/xorg.conf file.. no wonder. I see what the wiki says about that but where can I find a good example of a xorg.conf file?

Last edited by rg_arc (2012-05-16 02:47:20)

Offline

#66 2012-05-16 08:19:43

Psykorgasm
Member
From: England, UK
Registered: 2011-11-24
Posts: 158

Re: Ohsnap I made another font (based on artwiz snap)

No problem.
As for /etc/X11/xorg.conf I use the nvidia blob to create mine (iirc both nv and ati blobs can create these for you), otherwise you can probably, and don't take my word for this, add the font paths to a new config in /etc/X11/conf.d/ something like 10-fonts.conf or 20-fonts.conf.
I'm sure someone would know better if that would work, but I have to leave so I don't have time to go research or try it out now - could be worth a try.

Offline

#67 2012-05-16 08:27:48

rg_arc
Member
From: Hattiesburg
Registered: 2011-03-20
Posts: 490
Website

Re: Ohsnap I made another font (based on artwiz snap)

well that is the beauty of Arch Linux... the do it yourself attitude. I don't mind doing some research to make everything work properly. All I am concerned with is making sure I don't destroy everything LOL

I appreciate the help anyways.

Offline

#68 2012-05-16 09:55:10

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,472
Website

Re: Ohsnap I made another font (based on artwiz snap)

rg_arc wrote:

well that is the beauty of Arch Linux... the do it yourself attitude. I don't mind doing some research to make everything work properly. All I am concerned with is making sure I don't destroy everything LOL

I appreciate the help anyways.

You can only destroy X by editing xorg.conf or any other Xorg config file. It is as simple as booting into CLI and removing that file and restarting X to recover! big_smile

Oh, by the way, I don't know how you start X but you can also add the font path to your .xinitrc, as the Wiki also says.

Last edited by Unia (2012-05-16 09:55:39)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#69 2012-05-16 10:06:40

rg_arc
Member
From: Hattiesburg
Registered: 2011-03-20
Posts: 490
Website

Re: Ohsnap I made another font (based on artwiz snap)

my ~/.xinitrc:

eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh)
udiskie &
exec ck-launch-session dbus-launch gnome-session

so I looked at the article and put the font path into this file... but I see no changes.

Last edited by rg_arc (2012-05-16 10:22:12)

Offline

#70 2012-05-16 12:24:39

theGunslinger
Member
Registered: 2011-05-20
Posts: 299

Re: Ohsnap I made another font (based on artwiz snap)

you probably need these add these two lines to the bottom of your .xinitrc:


xset +fp /usr/share/fonts/local
xset fp rehash

Online

#71 2012-05-16 12:27:11

rg_arc
Member
From: Hattiesburg
Registered: 2011-03-20
Posts: 490
Website

Re: Ohsnap I made another font (based on artwiz snap)

well that is what I added actually

updated ~/.xinitrc:

eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh)
udiskie &
exec ck-launch-session dbus-launch gnome-session
xset +fp /usr/share/fonts/local
xset fp rehash

Offline

#72 2012-05-16 14:44:33

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: Ohsnap I made another font (based on artwiz snap)

I'm pretty sure

exec ck-launch-session dbus-launch gnome-session

needs to be the last line in your .xinitrc. Try putting it above that. I'm not sure if you need

xrdb -merge ~/.Xresources

with gnome?

Offline

#73 2012-05-16 16:21:58

rg_arc
Member
From: Hattiesburg
Registered: 2011-03-20
Posts: 490
Website

Re: Ohsnap I made another font (based on artwiz snap)

I put the exec line at the bottom like you said... and I don't know anything about ~/.Xresources.. I don't even have that file either LOL

Last edited by rg_arc (2012-05-16 16:22:13)

Offline

#74 2012-05-17 12:02:35

rg_arc
Member
From: Hattiesburg
Registered: 2011-03-20
Posts: 490
Website

Re: Ohsnap I made another font (based on artwiz snap)

I am going into the dropdown menus to see if the font could be there... but it isn't there. I went to the actual files where the font is located and I can see that everything is there... but still its not integrated into the system even though I made those changes to my file... this is a bit awkward.

Offline

#75 2012-05-24 08:46:08

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: Ohsnap I made another font (based on artwiz snap)

I updated it. I added consolefonts and started working on iso10646-1 versions (bold too). And I dropped the 8x15 and 8x17 sizes. They were a mess and ugly. If you want those, let me know, but I'm not interested in developing them anymore. So for now, the sizes are 6x11, 7x12 and 7x14. The iso10646-1 versions work great in urxvt and gtk but not in some things (like dwm). I'll keep the iso8859-1 versions too for fallback. To use the consolefonts, you can do something like:

setfont ohsnap7x12b

. Check the wiki for a more permanent solution (although that isn't working at the moment because of a bug in udev). To use the iso10646-1 versions:

-*-ohsnapu-medium-r-normal-*-11-*-*-*-*-*-*-*

or just use the iso8859-1 and icon versions the same as before. I also refined a few of the icons and added back the multiply symbol and moved that icon to the empty space at 00A0. I made several other changes on all sizes (hopefully for the better) and added a README. The 6x11 is very nice overall and the 12 and 14 bold look awesome. Hope you like it. Cheers

@rg_arc, I don't know much about gnome, so I can't really help you. Maybe try the new iso10646-1 and see if that works?

edit: I added more icons to stlarch_font too.

Last edited by stlarch (2012-05-24 09:03:47)

Offline

Board footer

Powered by FluxBB