You are not logged in.

#51 2012-04-26 10:11:36

falcongg
Member
Registered: 2012-04-04
Posts: 17

Re: Termsyn Font

Okay, as for now I figured out that

URxvt.font: -*-termsyn-medium-r-normal-*-11-*-*-*-*-*-iso8859-2, -misc-fixed-medium-r-normal-*-10-*-*-*-*-*-iso10646-1
URxvt.boldFont: -*-termsyn-bold-r-normal-*-11-*-*-*-*-*-iso8859-2, -misc-fixed-medium-r-normal-*-10-*-*-*-*-*-iso10646-1

is better solution. With above configuration you get http://i.imgur.com/cd3Nq.png instead of http://i.imgur.com/WPNnn.png
This is same solution as this with dwm suggested by sunaku:

static const char font[] = "-*-tamsynmod-medium-r-*-*-14-*-*-*-*-*-*-*" "," "-*-fixed-medium-r-*-*-14-*-*-*-*-*-*-*";

I'll use

static const char font[] = "-*-termsyn-medium-r-normal-*-11-*-*-*-*-*-iso8859-2" "," "-misc-fixed-medium-r-normal-*-10-*-*-*-*-*-iso10646-1";

As I don't use icons in statusbar.

I just think there is no sense to add _several_ UTF-8 characters into termsyn. All or none in my opinion.

Maybe you didn't know what you're doing, but you did it very well. I have 1920x1200 resolution screen and termsyn size 11 + solarized colorscheme is just perfectly readable. Terminus lacks bold font at size 12 which is unacceptable for me.

Great work stlarch. Waitin' for more, of course if you will find some readiness and time for making termsyn even better.

Cheers.

Offline

#52 2012-04-26 14:28:30

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

Re: Termsyn Font

Damn, I tried to discourage you. From now on, I'll take the Allan approach and just say Termsyn sucks, don't use it. tongue I'm kidding. Don't ever take anything that I say seriously. I'm glad you got something worked out for now and like it. I'll try to do some reading and see if I can improve it. I made a couple other fonts too, in case you didn't know (terminusmod and ohsnap). Ohsnap is just ISO8859-1 for now. I at least want to finish the ISO8859-2 part of ohsnap and try to get console fonts working. I just need to get motivated.

Offline

#53 2012-04-30 22:22:19

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

Re: Termsyn Font

Well, I've been trying. I made a font with just icons like sunaku did. I just used the icons from terminusmod for now so they are size 12 but should work ok for 11 too. This is probably a better solution for now. You can try it out, it's in my configs (stlarchicons.pcf). Just cp it to /usr/share/fonts/local and do

fc-cache -f
mkfontscale /usr/share/fonts/local
mkfontdir /usr/share/fonts/local

and then use something like

static const char font[]            = "-*-termsyn-medium-r-*-*-11-*-*-*-*-*-*-*" "," "*";

in your config.h for dwm.

You can

echo -e '\uE015'

(for the clock for example) and paste the output to your conkyrc or script. (It will just show up as a block in urxvt, go ahead and paste it)
You can use this for now until I figure out exactly what I'm doing and what I want to do. tongue I would like to just put it all in one font but I'm having some problems. I'll keep hacking away at it and see if I can come up with something. I might just make a few different size versions of this and make a seperate package out of it for now. You should be able to use this with any other font).

Here's a acreenshot of vanilla dwm with termsyn 11 font and the clock in stlarchicons with conky:
tZGtzYw

Last edited by stlarch (2012-05-01 05:26:49)

Offline

#54 2012-05-01 03:11:12

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

Re: Termsyn Font

So, it seems to work with either:

static const char font[]            = "-*-termsyn-medium-r-*-*-14-*-*-*-*-*-*-*" "," "-*-stlarchicons-medium-r-*-*-12-*-*-*-*-*-*-*";

or

static const char font[]            = "-*-termsyn-medium-r-*-*-14-*-*-*-*-*-*-*" "," "*";

in config.h for dwm. I guess you would need to define it if there was more than one font that used the Private Use Area. I forgot to mention before that this uses the Unicode Private Use Area (U+E000 - U+F8FF). After some thought, I decided it would probably be best to try to make one size for now (8x8ish) so I can make them look a little better and they should go well with most fonts. It should be pretty much the same as using xbm icons. I'll try to get something together in the next day or two. Much thanks to sunaku for figuring out how to do this. There is more discussion about this from a while back in the tamsynmod thread https://bbs.archlinux.org/viewtopic.php?id=129275&p=1 .

edit: I noticed some extra space at the top of the statusbar when using "*", and I don't get it with "-*-stlarchicons-medium-r-*-*-12-*-*-*-*-*-*-*". The "*" works but I'm not sure exactly what it's doing? Otherwise it seems to be working fine here. Here's another screenshot with statuscolors patch and full conky:
tZGt2bg

Last edited by stlarch (2012-05-01 05:24:56)

Offline

#55 2012-05-02 00:47:49

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

Re: Termsyn Font

OK, I made a new font with just icons as mentioned prevoiusly. I just named it stlarch_font. It's 8x13 and most of the glyphs are 8x8ish, so it should go well with many fonts. I'll try to add more icons soon. It's in the AUR too, https://aur.archlinux.org/packages.php?ID=58930 . Here's a screenshot:
tZGxhNw

Offline

#56 2012-05-02 04:00:41

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

Re: Termsyn Font

Well fuck. I just tested it out with terminus and it seems to be a no-go. It works with all of mine and tamsyn? So I suspect it conflicts with other unicode fonts like terminus sad  <sledgehammer->computer>  So, it still works with many fonts, just not the really good ones tongue

Last edited by stlarch (2012-05-02 04:03:32)

Offline

#57 2012-05-02 14:18:32

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

Re: Termsyn Font

Disregard the previous post. I must have got frustrated. I went back and read some of the discussion in the tamsynmod thread and sunaku suggested trying this:

static const char font[]            = "-*-stlarch-medium-r-*-*-13-*-*-*-*-*-*-*" "," "-*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*";

  (putting stlarch_font first in the string) and it works. Not sure why, but it does. Thank God. So it will work with terminus and should work with any other font this way. I'm using terminus right now.

Offline

#58 2012-05-02 16:45:57

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Termsyn Font

Could you possibly make size 11 too? I tried it with termsyn 11, but it increased height of statusbar a lot.

Last edited by OK100 (2012-05-02 16:47:15)

Offline

#59 2012-05-02 17:53:24

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

Re: Termsyn Font

Hey. Yeah, you're right. I shouldn't have used 13. Part of the problem is gbdfed (or maybe it's me tongue). Anyway, I found another template to use and it should work better. It will be 8x10. That's as small as I can make it because I want the icons to be around 8x8. This should drop a few pixels off the top but some of the icons may still look a little big with 11's? I drew a few smaller versions of some of them and will probably add more. You can maybe modify a few of them yourself until I get more added. Give me an hour or two and I'll put the new one together. Here's a screenshot of what I have so far:
tZGxpZw

Offline

#60 2012-05-02 18:06:08

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Termsyn Font

That looks much better! I'm looking forward to it tongue

Offline

#61 2012-05-02 21:37:29

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

Re: Termsyn Font

I ended up getting busy, so I'll finish it up tonight and post it later tonight or by tomorrow.

Offline

#62 2012-05-03 03:39:55

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

Re: Termsyn Font

OK, I updated it. It's now 8x10, so you'll have to change it to something like

-*-stlarch-medium-r-*-*-10-*-*-*-*-*-*-*

The icons are in the same positions as before. I had to modify a couple of them very slightly. The only problem that I noticed when using an 11 is the little open window indicator box thingy almost seems to touch the tag if you use an icon for the tag. I'm using the dice for mine. You could maybe put a space in front of the icon if it's a problem for you? It doesn't seem to be a problem with a 12 or bigger. It shouldn't affect the tag if it's text. Otherwise, it seems ok to me and looks and works pretty good with a 12 here. Let me know what you think.

The full name is

-misc-stlarch-medium-r-normal-*-10-100-75-75-c-80-iso10646-1

Last edited by stlarch (2012-05-03 05:40:23)

Offline

#63 2012-05-03 11:45:07

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Termsyn Font

Thanks mate! smile It looks great. No issue with indicator squares for me.
Here's a screenie:
tZGx0OA
It's much better solution than your previous fonts.

Offline

#64 2012-05-03 20:56:48

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

Re: Termsyn Font

Cool. That looks very nice! I updated it again and added about 50 more icons or so. Most are just variations of existing ones (smaller) and a few new ones too. Here's a screenshot of the added icons:
tZG0yMA

Offline

#65 2012-05-04 05:54:58

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Termsyn Font

Great! Thank you big_smile The ghost icon (E0AA) is very nice.

Last edited by OK100 (2012-05-04 05:59:55)

Offline

#66 2012-05-05 05:12:31

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

Re: Termsyn Font

Well, I was bored so I made a few more icons. (OCD) Some of the outlined ones look a little small on my screen but might look nice on bigger screens. Here's screenshots of all of the icons:
tZG1uYQ    tZG1uYg    tZG1uYw
Once again, you can always edit them yourself or add more. See the README for more info.

Offline

#67 2012-05-05 11:57:29

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Termsyn Font

I have a problem with some iso8859-2 characters in GTK apps. It looks like this:
tZG1wcQ
I also tried to install terminus and all characters were displayed right in lxappearance.
However, it works fine in urxvt.

Last edited by OK100 (2012-05-05 11:58:53)

Offline

#68 2012-05-05 15:16:58

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

Re: Termsyn Font

That's weird. I haven't noticed anything here, but I use iso8859-1. Is it just in lxappearance or in other apps too? Thankfully, I don't think many will use the font in GTK, but I'd still like to know what's happening. The only thing I can think of right now is that maybe since stlarch_font is iso10646-1 maybe it's conflicting? I'm wondering if you change it to iso10646-2 if it will work for you. Maybe you could try that with gbdfed (properties). But otherwise, I'm not sure. Let me try to play around with a few things and see if I can figure something out. I assume this started after adding stlarch_font right?

Last edited by stlarch (2012-05-05 15:30:58)

Offline

#69 2012-05-05 15:57:28

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Termsyn Font

It has nothing to do with stlarch_font. I have this issue since I started using termsyn. From GTK apps, I use it only in dwb, but I tried it as main GTK font and it was the same in all apps. It's quite bad because I use it also in web pages as fixed-width font.
Here's another screenshot with dwb:
tZG10NQ
One thing that can be related, you have two fonts for each size - 8859-1 and 8859-2. Maybe GTK applications uses 8859-1 version. I tried to delete all 8859-1 termsyn fonts, rebuilt font cache and restart X, but then Termsyn disappeared from font list in lxappearance.

Last edited by OK100 (2012-05-05 16:02:55)

Offline

#70 2012-05-05 16:30:50

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

Re: Termsyn Font

Ah, I see. That is a problem. Let me play around with it and see if I can come up with something.

EDIT: I think I might know what it is. I have to leave but I'll play with it tonight and tomorrow and see if I can fix it.

Last edited by stlarch (2012-05-06 21:49:18)

Offline

#71 2012-05-15 05:20:30

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

Re: Termsyn Font

Well, I think I figured out how to do consolefonts. I made one for termsyn. It's in my configs if anyone wants to test it for me. It's in the termsyn folder, the file is termsyn6x11r.psfu. Copy it to /usr/share/kbd/consolefonts and do #setfont termsyn6x11r. I think everything is encoded right, but let me know if something is wrong. It seems ok here so far. I made a few changes too but I'm not sure if I like them yet. Let me know what you think about that too. Give me a couple weeks to get everything together and I'll update the whole font. I'm still working on the iso8859-2 problem in gtk and some other things. Here's a screenshot: Cheers
tZHI0cQ

edit: I forgot the character at 007F. It should be right now.

Last edited by stlarch (2012-05-15 06:22:44)

Offline

#72 2012-05-18 08:57:19

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

Re: Termsyn Font

Well, I didn't really like the changes I was trying out so I put it back closer to the way it was with a couple changes. Anyway, I decided to try to do an ISO10646-1 version of the 6x11. It's in my configs if anyone wants to test it. It's in termsyn/testing. There is a bold version too. I think it should solve your problems in gtk OK100. Please test it and let me know. It should solve your problems too falcongg. I added the Latin Extended-A and some common characters and symbols. Some of the characters might not be right. Let me know if you notice anything wrong. I'm not familiar with them. I'll try to add more stuff to it  and improve it later. I just want to make sure it will work first. It seems to work great in urxvt and gtk but probably won't work in some things (like dwm). I'll keep the ISO8859 versions too to use as fallback. I named the ISO10646 versions termsynu6x11r.pcf and termsynu6x11b.pcf. So, in dwm I have defined as my font

static const char font[]            = "-*-stlarch-medium-r-*-*-10-*-*-*-*-*-*-*" "," "-*-termsyn-medium-r-*-*-11-*-*-*-*-*-*-*";

like before, and

urxvt*font:              -*-termsynu-medium-r-normal-*-11-*-*-*-*-*-*-*
urxvt*boldFont:          -*-termsynu-bold-r-normal-*-11-*-*-*-*-*-*-*

in my .Xresources. If you think this is ok and the right way to go, I'll do the rest of it and Ohsnap too. It might take me a while to get it all together. I guess I could add the icons into the ISO10646 versions too. I'll do an ISO8859-2 version of the consolefont tomorrow too and throw it in my configs. And I decided to drop the bold versions of the ISO8859 icon sets. I don't think anyone used those.
I started making the ISO10646 because I couldn't figure out how terminus or fixed does it the other way. It must have an embedded table but I can't seem to get it. For the consolefonts, I used psfgettable and psfaddtable and it's nice and easy but I'm stumped on the x fonts. But maybe this is better?

Offline

#73 2012-05-18 14:36:15

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Termsyn Font

Hi, it works fine in urxvt, but not in GTK (I can't see it in lxappearance). I tried to run fc-cache -vf and restart X without success.
EDIT: I downloaded wrong files. It works great in GTK. Thanks!

Last edited by OK100 (2012-05-18 14:43:06)

Offline

#74 2012-05-18 19:13:17

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

Re: Termsyn Font

Awesome. I did the iso8859-2 version of the consolefont too for the 6x11. I'll probably do ohsnap first because it's easier and then I'll come back and finish this up and update it. I'll try to straighten out everything before I update it.

Offline

#75 2012-05-24 20:07:39

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Termsyn Font

Do you have any idea if it's possible to use termsyn font in urxvt, and set stlarch_font as secondary font for characters that are not in termsyn? It would be cool to have icons in tmux statusbar too.

Offline

Board footer

Powered by FluxBB