You are not logged in.

#1 2020-05-06 13:34:23

Anonymous2020
Member
Registered: 2020-03-03
Posts: 18

How to print symbols from second font in terminal or dwm?

I am trying to use siji fonts in dwm and st terminal. It seems that I have installed siji correctly, fc-list shows it and I have added it to dwm and st config files. However when I am trying to use it in status bar or just echo some symbol in terminal it shows me symbols from my first font. How can I print symbols from other installed fonts in terminal?

MOD EDIT: This user's username has been changed by the admins for being unreasonably offensive.

Last edited by fukawi2 (2020-05-07 01:16:30)

Offline

#2 2020-05-06 14:08:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: How to print symbols from second font in terminal or dwm?

retardedfuck wrote:

... I have added it to dwm and st config files

How, exactly?  Is the symbol font listed first?  (And you've recompiled them?)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-05-06 14:22:33

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: How to print symbols from second font in terminal or dwm?

Moving to Newbie Corner.

Offline

#4 2020-05-06 14:37:43

Anonymous2020
Member
Registered: 2020-03-03
Posts: 18

Re: How to print symbols from second font in terminal or dwm?

It is listed first in *fonts[]. Yes, i've recompiled and installed dwm. When i set siji font first in dwm config, it changes fonts in status bar, though i don't understand what font is it.

Last edited by Anonymous2020 (2020-05-06 15:49:17)

Offline

#5 2020-05-06 15:45:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: How to print symbols from second font in terminal or dwm?

Trilby wrote:

How, exactly?

Show actual configs and actual output of `fc-match` with whatever you put in the config.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2020-05-06 16:02:12

Anonymous2020
Member
Registered: 2020-03-03
Posts: 18

Re: How to print symbols from second font in terminal or dwm?

fc-match
FreeSans.oft: "FreeSans" "Regular"

line with fonts from dwm config:

static const char *fonts[] = {"ANONYMOUS PRO:pixelsize=20", "-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1"};

Offline

#7 2020-05-06 16:10:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: How to print symbols from second font in terminal or dwm?

*headdesk*

So 1 - you posted the output of fc-match with *nothing* rather than with the font as requested, and 2 - you posted a config that showed your answer in post 4 was incorrect.  I'm not sure why you chose your screen name, but don't try to live up to it.

Symbols will be taken from the first listed font that provides them.

Last edited by Trilby (2020-05-06 17:51:28)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2020-05-06 17:59:48

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: How to print symbols from second font in terminal or dwm?

For st you could try
https://st.suckless.org/patches/font2/

excerpt from my dwm config.h

static const char *fonts[] = {
        "pango:EnvyCodeR:size=9",
        "Siji:size=9"
};

Last edited by cirrus (2020-05-06 18:07:44)

Offline

#9 2020-05-06 18:17:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: How to print symbols from second font in terminal or dwm?

Cirrus, that config will not use symbols from Siji if the same code point is provided by EnvyCodeR which is the problem the OP is having.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2020-05-06 18:29:25

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: How to print symbols from second font in terminal or dwm?

Thank you Trilby, all this time i thought the symbols on my top status bar  were provided by siji not envy code r, or is it simply due to this  ?

regards

Offline

#11 2020-05-06 18:33:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: How to print symbols from second font in terminal or dwm?

I have no idea what's in your status bar.  I did not say your config would not allow you to use siji symbols; it will, but only if those code points are not also provided by EnvyCodeR.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#12 2020-05-06 18:46:05

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: How to print symbols from second font in terminal or dwm?

gotcha !

Offline

#13 2020-05-06 21:46:07

Anonymous2020
Member
Registered: 2020-03-03
Posts: 18

Re: How to print symbols from second font in terminal or dwm?

cirrus wrote:

For st you could try
https://st.suckless.org/patches/font2/

excerpt from my dwm config.h

static const char *fonts[] = {
        "pango:EnvyCodeR:size=9",
        "Siji:size=9"
};

Thanks for your reply. It was helpful. Apparently, I misread something from guide for siji, setting "Siji" in fonts (instead of what was in guide) after my normal one helps. I can see now icons in dwm and status bar. However, I still can't see icons in terminal.
I have this patch installed and it looks like this

 static char *font2[] = { "Siji:size=9:antialias=true:autohint=true" }; 

Offline

#14 2020-05-07 14:13:27

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: How to print symbols from second font in terminal or dwm?

icons in terminal try install symbola fonts for emojis in st you need libxft-brga from aur

Offline

Board footer

Powered by FluxBB