You are not logged in.

#1 2022-09-15 18:43:23

ArchUserBTW69
Member
Registered: 2022-09-03
Posts: 33

[SOLVED] How to enable Droid Sans font

So i downloaded the ttf-droid because i heard the Droid Sans font is good, but now how do i use it? preferably in terminal cus i might make a script later.

Last edited by ArchUserBTW69 (2022-09-16 13:46:41)

Offline

#2 2022-09-15 18:49:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: [SOLVED] How to enable Droid Sans font

https://wiki.archlinux.org/title/Font_c … figuration for the config file format/location
https://wiki.archlinux.org/title/Font_c … back_fonts for configuring fallback fonts

if you don't want this globally then look at the documentation of your terminal emulator for how it sets up/configures fonts.

Last edited by V1del (2022-09-15 18:49:37)

Offline

#3 2022-09-15 18:57:19

ArchUserBTW69
Member
Registered: 2022-09-03
Posts: 33

Re: [SOLVED] How to enable Droid Sans font

V1del wrote:

https://wiki.archlinux.org/title/Font_c … figuration for the config file format/location
https://wiki.archlinux.org/title/Font_c … back_fonts for configuring fallback fonts

if you don't want this globally then look at the documentation of your terminal emulator for how it sets up/configures fonts.

Im very sorry but i still dont know how to do it after reading the wiki, what am i supposed to put inside the config file?

Offline

#4 2022-09-15 19:06:33

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [SOLVED] How to enable Droid Sans font

Start by copying the font files into ~/.local/share/fonts.

By the way, in a terminal you typically want to use a monospace font instead of a sans font.

Last edited by tucuxi (2022-09-15 19:09:09)

Offline

#5 2022-09-15 19:20:04

ArchUserBTW69
Member
Registered: 2022-09-03
Posts: 33

Re: [SOLVED] How to enable Droid Sans font

tucuxi wrote:

Start by copying the font files into ~/.local/share/fonts.

By the way, in a terminal you typically want to use a monospace font instead of a sans font.

Ok i made the ~/.local/share/fonts and copied everything from /usr/share/fonts to here, not sure if i did it right

Offline

#6 2022-09-15 19:36:22

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [SOLVED] How to enable Droid Sans font

I would not copy everything from /usr/share/fonts to ~/.local/share/fonts, because those files are owned by pacman packages. You should only put the droid font files into your .local/share/fonts directory. fontconfig should automatically pick up that location. Try fc-list and look for the droid font files in the output.

Last edited by tucuxi (2022-09-15 19:36:55)

Offline

#7 2022-09-15 19:38:46

ArchUserBTW69
Member
Registered: 2022-09-03
Posts: 33

Re: [SOLVED] How to enable Droid Sans font

tucuxi wrote:

I would not copy everything from /usr/share/fonts to ~/.local/share/fonts, because those files are owned by pacman packages. You should only put the droid font files into your .local/share/fonts directory. fontconfig should automatically pick up that location. Try fc-list and look for the droid font files in the output.

Oh yes i see it, now how do i activate it?

Offline

#8 2022-09-15 19:39:16

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [SOLVED] How to enable Droid Sans font

Try fc-list and look for the droid font files in the output.

Offline

#9 2022-09-15 19:40:44

ArchUserBTW69
Member
Registered: 2022-09-03
Posts: 33

Re: [SOLVED] How to enable Droid Sans font

tucuxi wrote:

Try fc-list and look for the droid font files in the output.

Yep i see it, how do i activate it?

Offline

#10 2022-09-15 19:42:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,484

Re: [SOLVED] How to enable Droid Sans font

Assuming the OP installed https://archlinux.org/packages/community/any/ttf-droid/ he should copy/move exactly nothing at all.
If he got the font from somewhere else,  he should ditch that and use the repo package.

@ArchUserBTW69
https://wiki.archlinux.org/title/Font_c … ault_fonts has some examples, ignore all the language specific stuff, the second arabic example has a usable pattern for your local font config which should go somewhere into  ~/.config/fontconfig/conf.d/

Offline

#11 2022-09-15 19:48:36

ArchUserBTW69
Member
Registered: 2022-09-03
Posts: 33

Re: [SOLVED] How to enable Droid Sans font

seth wrote:

Assuming the OP installed https://archlinux.org/packages/community/any/ttf-droid/ he should copy/move exactly nothing at all.
If he got the font from somewhere else,  he should ditch that and use the repo package.

@ArchUserBTW69
https://wiki.archlinux.org/title/Font_c … ault_fonts has some examples, ignore all the language specific stuff, the second arabic example has a usable pattern for your local font config which should go somewhere into  ~/.config/fontconfig/conf.d/

like this? https://pastebin.com/qj2EbUHw

Offline

#12 2022-09-15 20:12:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,484

Re: [SOLVED] How to enable Droid Sans font

Like do you not intend to use the serif and monospace variants as well?

Offline

#13 2022-09-16 13:26:19

ArchUserBTW69
Member
Registered: 2022-09-03
Posts: 33

Re: [SOLVED] How to enable Droid Sans font

seth wrote:

Like do you not intend to use the serif and monospace variants as well?

Sorry had to go sleep last night, i want to use the sans-serif for most of the things and monospace for terminal
so i should just put this https://pastebin.com/qj2EbUHw inside the fonts.d/font.conf and it will automatically start using those two?

Last edited by ArchUserBTW69 (2022-09-16 13:27:35)

Offline

#14 2022-09-16 13:30:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,484

Re: [SOLVED] How to enable Droid Sans font

What do you think could be the worst outcome if you try?

Offline

#15 2022-09-16 13:38:35

ArchUserBTW69
Member
Registered: 2022-09-03
Posts: 33

Re: [SOLVED] How to enable Droid Sans font

seth wrote:

What do you think could be the worst outcome if you try?

Ok i just did that and restarted my pc, and im not sure if anything changed. Anyway to check what current font im using?

Last edited by ArchUserBTW69 (2022-09-16 13:38:51)

Offline

#16 2022-09-16 13:43:49

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

Re: [SOLVED] How to enable Droid Sans font

tucuxi wrote:

By the way, in a terminal you typically want to use a monospace font instead of a sans font.

Droid Sans Mono would be the one used.  It's a bit of a semantic issue that monospace fonts are generally categorized differently from sans-serif fonts, but strictly speaking, most monospaced fonts (every one I know) lacks serifs; so "monospace" is mostly a subset of "sans-serif".  This is seen in the naming of some such as Droid Sans Mono and DejaVu Sans Mono.

But yes, for the terminal, make sure a monospaced variety of a font is used.

Last edited by Trilby (2022-09-16 13:51:03)


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

Offline

#17 2022-09-16 13:46:24

ArchUserBTW69
Member
Registered: 2022-09-03
Posts: 33

Re: [SOLVED] How to enable Droid Sans font

Trilby wrote:
tucuxi wrote:

By the way, in a terminal you typically want to use a monospace font instead of a sans font.

Droid Sans Mono would be the one used.  It's a bit of a symantic issue that monospace fonts are generally categorized differently from sans-serif fonts, but strictly speaking, most monospaced fonts (every one I know) lacks serifs; so "monospace" is mostly a subset of "sans-serif".  This is seen in the naming of some such as Droid Sans Mono and DejaVu Sans Mono.

But yes, for the terminal, make sure a monospaced variety of a font is used.

Nice when i typed fc-match this was the output
DroidSans.ttf: "Droid Sans" "Regular"

Thank you very much!

Offline

#18 2022-09-16 13:47:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,484

Re: [SOLVED] How to enable Droid Sans font

Also check "fc-match monospace" and then please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Edit: too late
Thanks.

Last edited by seth (2022-09-16 13:48:17)

Offline

#19 2022-09-16 13:50:22

ArchUserBTW69
Member
Registered: 2022-09-03
Posts: 33

Re: [SOLVED] How to enable Droid Sans font

seth wrote:

Also check "fc-match monospace"

Yep
DroidSansMono.ttf: "Droid Sans Mono" "Regular"

Offline

Board footer

Powered by FluxBB