~protesilaos/dotfiles

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
8 3

[PATCH] fontconfig: use strong alias binding---

Details
Message ID
<87h75k1s0z.fsf@nadanix.com>
DKIM signature
missing
Download raw message
Patch: +3 -3
Hi Prot, I just discover your user fontconfig config is not strong
enough to replace some OS (NixOS) fontconfig defaults. I research the
problem and have found this solution. For reference:
https://bbs.archlinux.org/viewtopic.php?pid=1867659#p1867659

I hope you found the solution good enough to merge in your codebase.

Regards,

---
 fontconfig/.config/fontconfig/conf.d/60-latin.conf | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fontconfig/.config/fontconfig/conf.d/60-latin.conf b/fontconfig/.config/fontconfig/conf.d/60-latin.conf
index fc7278e0..4b6d02e9 100644
--- a/fontconfig/.config/fontconfig/conf.d/60-latin.conf
+++ b/fontconfig/.config/fontconfig/conf.d/60-latin.conf
@@ -7,7 +7,7 @@

  <description>Set preferable fonts for Latin</description>

  <alias>
  <alias binding="strong">
    <family>serif</family>
    <prefer>
      <family>Noto Serif</family>
@@ -17,7 +17,7 @@
      <family>DejaVu Serif</family>
    </default>
  </alias>
  <alias>
  <alias binding="strong">
    <family>sans-serif</family>
    <prefer>
      <family>FiraGO</family>
@@ -29,7 +29,7 @@
      <family>DejaVu Sans</family>
    </default>
  </alias>
  <alias>
  <alias binding="strong">
    <family>monospace</family>
    <prefer>
      <!-- My custom build of Iosevka has a "wide" variant that I
-- 
2.33.3



-- 
Juanjo Presa
https://nadanix.com
Details
Message ID
<875ym03zuy.fsf@protesilaos.com>
In-Reply-To
<87h75k1s0z.fsf@nadanix.com> (view parent)
DKIM signature
pass
Download raw message
Hello there!

> From: Juanjo Presa <juanjo.presa@nadanix.com>
> Date: Fri, 20 May 2022 11:18:20 +0200
>
> Hi Prot, I just discover your user fontconfig config is not strong
> enough to replace some OS (NixOS) fontconfig defaults.

What exactly is the issue you have encountered?  These have worked fine
for me on Debian and now on Arch (probably for more than 3 years).
Maybe Nix does something differently?  Or maybe some settings' daemon is
misbehaving?

> I research the problem and have found this solution. For reference:
> https://bbs.archlinux.org/viewtopic.php?pid=1867659#p1867659

In that link, the poster notes:

    I don't quite understand the rules for binding myself, but it has
    worked for me in troubleshooting priority of alias rules.

As I also don't understand the extent of this change, I need some more
information on what the problem is and what this "strong" binding
entails.

> I hope you found the solution good enough to merge in your codebase.

I am happy to do this if it fixes some problem.

All the best,
Prot

-- 
Protesilaos Stavrou
https://protesilaos.com
Juanjo Presa <juanjop@gmail.com>
Details
Message ID
<87h75j9801.fsf@nadanix.com>
In-Reply-To
<875ym03zuy.fsf@protesilaos.com> (view parent)
DKIM signature
pass
Download raw message
> From: Protesilaos Stavrou <info@protesilaos.com>
> Date: Fri, 20 May 2022 19:58:29 +0300
>
> Hello there!

Hi, thanks for your reply!

> What exactly is the issue you have encountered?  These have worked fine
> for me on Debian and now on Arch (probably for more than 3 years).
> Maybe Nix does something differently?  Or maybe some settings' daemon is
> misbehaving?

=fc-match -s monospace= still list first OS default monospace font.

>> I research the problem and have found this solution. For reference:
>> https://bbs.archlinux.org/viewtopic.php?pid=1867659#p1867659
>
> In that link, the poster notes:
>
>     I don't quite understand the rules for binding myself, but it has
>     worked for me in troubleshooting priority of alias rules.
>
> As I also don't understand the extent of this change, I need some more
> information on what the problem is and what this "strong" binding
> entails.

According to Arch Wiki [1], your <prefer> method only works if the
default/original font is not in the system. And suggest use binding for
better results:

[1] https://wiki.archlinux.org/title/Font_configuration#Replace_or_set_default_fonts

>> I hope you found the solution good enough to merge in your codebase.
>
> I am happy to do this if it fixes some problem.

By the way, maybe "strong" is a lot. I try with binding="same" and also
works.

I could also change my NixOS default font system-wide.  But I prefer to
keep the setting in my user space and let OS manage their default font
(DejaVu in this case).

> All the best,
> Prot

-- 
Juanjo Presa
https://nadanix.com
Details
Message ID
<87wneflg5t.fsf@protesilaos.com>
In-Reply-To
<87h75j9801.fsf@nadanix.com> (view parent)
DKIM signature
pass
Download raw message
> From: Juanjo Presa <juanjop@gmail.com>
> Date: Sat, 21 May 2022 00:03:42 +0200
>
>> From: Protesilaos Stavrou <info@protesilaos.com>
>> Date: Fri, 20 May 2022 19:58:29 +0300
>>
>> Hello there!
>
> Hi, thanks for your reply!

You are welcome!

>> What exactly is the issue you have encountered?  These have worked fine
>> for me on Debian and now on Arch (probably for more than 3 years).
>> Maybe Nix does something differently?  Or maybe some settings' daemon is
>> misbehaving?
>
> =fc-match -s monospace= still list first OS default monospace font.

I applied and pushed your change (commit 861683b2) since it does not
need to have a negative effect on my setup.  Though I must note that
this is strange.  In my case, the command shows my preferred fonts in
the order I specify them and then lists all the fallbacks.  I copy the
output below.  Nix must be doing something differently with its default
settings.

>>> I research the problem and have found this solution. For reference:
>>> https://bbs.archlinux.org/viewtopic.php?pid=1867659#p1867659
>>
>> In that link, the poster notes:
>>
>>     I don't quite understand the rules for binding myself, but it has
>>     worked for me in troubleshooting priority of alias rules.
>>
>> As I also don't understand the extent of this change, I need some more
>> information on what the problem is and what this "strong" binding
>> entails.
>
> According to Arch Wiki [1], your <prefer> method only works if the
> default/original font is not in the system. And suggest use binding for
> better results:
>
> [1] https://wiki.archlinux.org/title/Font_configuration#Replace_or_set_default_fonts

I am reading it differently.  What is mentioned in the wiki is true if
you are aliasing an actual font.  For example, if you want Helvetica to
always be replaced by Roboto.  Though the aliases we are talking about
are for the names "serif", "sans-serif", and "monospace".  These are not
actual fonts: there should never be a real Monospace taking precedence
over, say, Hack.

It does not really matter, as I applied your change.  Still it is good
to know what is actually happening on your end.  Could the default
settings be substituting "Monospace" with some font like DejaVu Sans
Mono?


Output from the shell
---------------------

    ~ $ fc-match -s monospace
    iosevka-comfy-wide-fixed-regular.ttf: "Iosevka Comfy Wide Fixed" "Extended"
    Hack-Regular.ttf: "Hack" "Regular"
    SourceCodePro-Regular.otf: "Source Code Pro" "Regular"
    NotoSansMono-Regular.ttf: "Noto Sans Mono" "Regular"
    DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
    DejaVuSansMono-Bold.ttf: "DejaVu Sans Mono" "Bold"
    NimbusMonoPS-Regular.otf: "Nimbus Mono PS" "Regular"
    iosevka-comfy-regular.ttf: "Iosevka Comfy" "Regular"
    SourceSans3-Regular.otf: "Source Sans 3" "Regular"
    NotoNastaliqUrdu-Regular.ttf: "Noto Nastaliq Urdu" "Regular"
    NotoSansHebrewNew-Regular.ttf: "Noto Sans Hebrew New" "Regular"
    NotoSansAdlam-Regular.ttf: "Noto Sans Adlam" "Regular"
    NotoSansWarangCiti-Regular.ttf: "Noto Sans Warang Citi" "Regular"
    DejaVuMathTeXGyre.ttf: "DejaVu Math TeX Gyre" "Regular"
    DejaVuSans.ttf: "DejaVu Sans" "Book"
    DejaVuSerif.ttf: "DejaVu Serif" "Book"
    NotoSerifTangut-Regular.ttf: "Noto Serif Tangut" "Regular"
    NotoKufiArabic-Regular.ttf: "Noto Kufi Arabic" "Regular"
    NotoSansMyanmar-Regular.ttf: "Noto Sans Myanmar" "Regular"
    NotoSerifMalayalam-Regular.ttf: "Noto Serif Malayalam" "Regular"
    NotoSansGujarati-Regular.ttf: "Noto Sans Gujarati" "Regular"
    NotoSansLisu-Regular.ttf: "Noto Sans Lisu" "Regular"
    NotoSerifTibetan-Regular.ttf: "Noto Serif Tibetan" "Regular"
    NotoSansEthiopic-Regular.ttf: "Noto Sans Ethiopic" "Regular"
    NotoSansHanifiRohingya-Regular.ttf: "Noto Sans Hanifi Rohingya" "Regular"
    NotoSansSoraSompeng-Regular.ttf: "Noto Sans Sora Sompeng" "Regular"
    LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"
    NotoNaskhArabic-Regular.ttf: "Noto Naskh Arabic" "Regular"
    NotoSansArabic-Regular.ttf: "Noto Sans Arabic" "Regular"
    NotoSansArmenian-Regular.ttf: "Noto Sans Armenian" "Regular"
    NotoSansCJK-Regular.ttc: "Noto Sans CJK JP" "Regular"
    NotoSansNewa-Regular.ttf: "Noto Sans Newa" "Regular"
    NotoSansSharada-Regular.ttf: "Noto Sans Sharada" "Regular"
    NotoSansCaucasianAlbanian-Regular.ttf: "Noto Sans Caucasian Albanian" "Regular"
    NotoSansElbasan-Regular.ttf: "Noto Sans Elbasan" "Regular"
    NotoSansJavanese-Regular.ttf: "Noto Sans Javanese" "Regular"
    NotoSansLepcha-Regular.ttf: "Noto Sans Lepcha" "Regular"
    NotoSansManichaean-Regular.ttf: "Noto Sans Manichaean" "Regular"
    NotoSansOldHungarian-Regular.ttf: "Noto Sans Old Hungarian" "Regular"
    NotoSansSignWriting-Regular.ttf: "Noto Sans SignWriting" "Regular"
    NotoSansSymbols2-Regular.ttf: "Noto Sans Symbols2" "Regular"
    NotoSerifAhom-Regular.ttf: "Noto Serif Ahom" "Regular"
    NotoSerifGrantha-Regular.ttf: "Noto Serif Grantha" "Regular"
    NotoSansBalinese-Regular.ttf: "Noto Sans Balinese" "Regular"
    NotoSansBengali-Regular.ttf: "Noto Sans Bengali" "Regular"
    NotoSansBrahmi-Regular.ttf: "Noto Sans Brahmi" "Regular"
    NotoSansChakma-Regular.ttf: "Noto Sans Chakma" "Regular"
    NotoSansDevanagari-Regular.ttf: "Noto Sans Devanagari" "Regular"
    NotoSansGurmukhi-Regular.ttf: "Noto Sans Gurmukhi" "Regular"
    NotoSansHanunoo-Regular.ttf: "Noto Sans Hanunoo" "Regular"
    NotoSansInscriptionalPahlavi-Regular.ttf: "Noto Sans Inscriptional Pahlavi" "Regular"
    NotoSansKannada-Regular.ttf: "Noto Sans Kannada" "Regular"
    NotoSansKharoshthi-Regular.ttf: "Noto Sans Kharoshthi" "Regular"
    NotoSansKhmer-Regular.ttf: "Noto Sans Khmer" "Regular"
    NotoSansKhojki-Regular.ttf: "Noto Sans Khojki" "Regular"
    NotoSansKhudawadi-Regular.ttf: "Noto Sans Khudawadi" "Regular"
    NotoSansLimbu-Regular.ttf: "Noto Sans Limbu" "Regular"
    NotoSansMahajani-Regular.ttf: "Noto Sans Mahajani" "Regular"
    NotoSansMarchen-Regular.ttf: "Noto Sans Marchen" "Regular"
    NotoSansMendeKikakui-Regular.ttf: "Noto Sans Mende Kikakui" "Regular"
    NotoSansOlChiki-Regular.ttf: "Noto Sans Ol Chiki" "Regular"
    NotoSansOldItalic-Regular.ttf: "Noto Sans Old Italic" "Regular"
    NotoSansPhagsPa-Regular.ttf: "Noto Sans PhagsPa" "Regular"
    NotoSansSinhala-Regular.ttf: "Noto Sans Sinhala" "Regular"
    NotoSansTakri-Regular.ttf: "Noto Sans Takri" "Regular"
    NotoSansTamil-Regular.ttf: "Noto Sans Tamil" "Regular"
    NotoSansTelugu-Regular.ttf: "Noto Sans Telugu" "Regular"
    NotoSansTifinagh-Regular.ttf: "Noto Sans Tifinagh" "Regular"
    NotoSansTirhuta-Regular.ttf: "Noto Sans Tirhuta" "Regular"
    NotoSansZanabazarSquare-Regular.ttf: "Noto Sans Zanabazar Square" "Regular"
    NotoTraditionalNushu-Regular.ttf: "Noto Traditional Nushu" "Regular"
    NotoMusic-Regular.ttf: "Noto Music" "Regular"
    NotoSansAvestan-Regular.ttf: "Noto Sans Avestan" "Regular"
    NotoSansBassaVah-Regular.ttf: "Noto Sans Bassa Vah" "Regular"
    NotoSansBatak-Regular.ttf: "Noto Sans Batak" "Regular"
    NotoSansBhaiksuki-Regular.ttf: "Noto Sans Bhaiksuki" "Regular"
    NotoSansCanadianAboriginal-Regular.ttf: "Noto Sans Canadian Aboriginal" "Regular"
    NotoSansCham-Regular.ttf: "Noto Sans Cham" "Regular"
    NotoSansCoptic-Regular.ttf: "Noto Sans Coptic" "Regular"
    NotoSansGeorgian-Regular.ttf: "Noto Sans Georgian" "Regular"
    NotoSansInscriptionalParthian-Regular.ttf: "Noto Sans Inscriptional Parthian" "Regular"
    NotoSansKaithi-Regular.ttf: "Noto Sans Kaithi" "Regular"
    NotoSansKayahLi-Regular.ttf: "Noto Sans Kayah Li" "Regular"
    NotoSansLao-Regular.ttf: "Noto Sans Lao" "Regular"
    NotoSansLinearB-Regular.ttf: "Noto Sans Linear B" "Regular"
    NotoSansMandaic-Regular.ttf: "Noto Sans Mandaic" "Regular"
    NotoSansMath-Regular.ttf: "Noto Sans Math" "Regular"
    NotoSansMeeteiMayek-Regular.ttf: "Noto Sans Meetei Mayek" "Regular"
    NotoSansMiao-Regular.ttf: "Noto Sans Miao" "Regular"
    NotoSansModi-Regular.ttf: "Noto Sans Modi" "Regular"
    NotoSansMongolian-Regular.ttf: "Noto Sans Mongolian" "Regular"
    NotoSansNKo-Regular.ttf: "Noto Sans NKo" "Regular"
    NotoSansNewTaiLue-Regular.ttf: "Noto Sans New Tai Lue" "Regular"
    NotoSansOldTurkic-Regular.ttf: "Noto Sans Old Turkic" "Regular"
    NotoSansOsage-Regular.ttf: "Noto Sans Osage" "Regular"
    NotoSansRunic-Regular.ttf: "Noto Sans Runic" "Regular"
    NotoSansSiddham-Regular.ttf: "Noto Sans Siddham" "Regular"
    NotoSansSundanese-Regular.ttf: "Noto Sans Sundanese" "Regular"
    NotoSansSylotiNagri-Regular.ttf: "Noto Sans Syloti Nagri" "Regular"
    NotoSansSymbols-Regular.ttf: "Noto Sans Symbols" "Regular"
    NotoSansTaiLe-Regular.ttf: "Noto Sans Tai Le" "Regular"
    NotoSansTaiTham-Regular.ttf: "Noto Sans Tai Tham" "Regular"
    NotoSansTaiViet-Regular.ttf: "Noto Sans Tai Viet" "Regular"
    NotoSansTamilSupplement-Regular.ttf: "Noto Sans Tamil Supplement" "Regular"
    NotoSansAnatolianHieroglyphs-Regular.ttf: "Noto Sans Anatolian Hieroglyphs" "Regular"
    NotoSansBamum-Regular.ttf: "Noto Sans Bamum" "Regular"
    NotoSansBuginese-Regular.ttf: "Noto Sans Buginese" "Regular"
    NotoSansBuhid-Regular.ttf: "Noto Sans Buhid" "Regular"
    NotoSansCarian-Regular.ttf: "Noto Sans Carian" "Regular"
    NotoSansCherokee-Regular.ttf: "Noto Sans Cherokee" "Regular"
    NotoSansCuneiform-Regular.ttf: "Noto Sans Cuneiform" "Regular"
    NotoSansCypriot-Regular.ttf: "Noto Sans Cypriot" "Regular"
    NotoSansDeseret-Regular.ttf: "Noto Sans Deseret" "Regular"
    NotoSansDuployan-Regular.ttf: "Noto Sans Duployan" "Regular"
    NotoSansEgyptianHieroglyphs-Regular.ttf: "Noto Sans Egyptian Hieroglyphs" "Regular"
    NotoSansGlagolitic-Regular.ttf: "Noto Sans Glagolitic" "Regular"
    NotoSansGothic-Regular.ttf: "Noto Sans Gothic" "Regular"
    NotoSansHatran-Regular.ttf: "Noto Sans Hatran" "Regular"
    NotoSansImperialAramaic-Regular.ttf: "Noto Sans Imperial Aramaic" "Regular"
    NotoSansIndicSiyaqNumbers-Regular.ttf: "Noto Sans Indic Siyaq Numbers" "Regular"
    NotoSansLinearA-Regular.ttf: "Noto Sans Linear A" "Regular"
    NotoSansLycian-Regular.ttf: "Noto Sans Lycian" "Regular"
    NotoSansLydian-Regular.ttf: "Noto Sans Lydian" "Regular"
    NotoSansMeroitic-Regular.ttf: "Noto Sans Meroitic" "Regular"
    NotoSansMro-Regular.ttf: "Noto Sans Mro" "Regular"
    NotoSansMultani-Regular.ttf: "Noto Sans Multani" "Regular"
    NotoSansNabataean-Regular.ttf: "Noto Sans Nabataean" "Regular"
    NotoSansOldNorthArabian-Regular.ttf: "Noto Sans Old North Arabian" "Regular"
    NotoSansOldPermic-Regular.ttf: "Noto Sans Old Permic" "Regular"
    NotoSansOldPersian-Regular.ttf: "Noto Sans Old Persian" "Regular"
    NotoSansOldSogdian-Regular.ttf: "Noto Sans Old Sogdian" "Regular"
    NotoSansOldSouthArabian-Regular.ttf: "Noto Sans Old South Arabian" "Regular"
    NotoSansOriya-Regular.ttf: "Noto Sans Oriya" "Regular"
    NotoSansOsmanya-Regular.ttf: "Noto Sans Osmanya" "Regular"
    NotoSansPahawhHmong-Regular.ttf: "Noto Sans Pahawh Hmong" "Regular"
    NotoSansPalmyrene-Regular.ttf: "Noto Sans Palmyrene" "Regular"
    NotoSansPauCinHau-Regular.ttf: "Noto Sans Pau Cin Hau" "Regular"
    NotoSansPhoenician-Regular.ttf: "Noto Sans Phoenician" "Regular"
    NotoSansPsalterPahlavi-Regular.ttf: "Noto Sans Psalter Pahlavi" "Regular"
    NotoSansRejang-Regular.ttf: "Noto Sans Rejang" "Regular"
    NotoSansSamaritan-Regular.ttf: "Noto Sans Samaritan" "Regular"
    NotoSansSaurashtra-Regular.ttf: "Noto Sans Saurashtra" "Regular"
    NotoSansShavian-Regular.ttf: "Noto Sans Shavian" "Regular"
    NotoSansSogdian-Regular.ttf: "Noto Sans Sogdian" "Regular"
    NotoSansSoyombo-Regular.ttf: "Noto Sans Soyombo" "Regular"
    NotoSansSyriac-Regular.ttf: "Noto Sans Syriac" "Regular"
    NotoSansTagalog-Regular.ttf: "Noto Sans Tagalog" "Regular"
    NotoSansTagbanwa-Regular.ttf: "Noto Sans Tagbanwa" "Regular"
    NotoSansThaana-Regular.ttf: "Noto Sans Thaana" "Regular"
    NotoSansThai-Regular.ttf: "Noto Sans Thai" "Regular"
    NotoSansUgaritic-Regular.ttf: "Noto Sans Ugaritic" "Regular"
    NotoSansVai-Regular.ttf: "Noto Sans Vai" "Regular"
    NotoSansWancho-Regular.ttf: "Noto Sans Wancho" "Regular"
    NotoSansYi-Regular.ttf: "Noto Sans Yi" "Regular"
    NotoSerifToto-Regular.ttf: "Noto Serif Toto" "Regular"
    NotoSansCyproMinoan-Regular.ttf: "Noto Sans Cypro Minoan" "Regular"
    NotoSansTangsa-Regular.ttf: "Noto Sans Tangsa" "Regular"
    NotoSerifDogra-Regular.ttf: "Noto Serif Dogra" "Regular"
    NotoSerifVithkuqi-Regular.ttf: "Noto Serif Vithkuqi" "Regular"
    NotoSansMasaramGondi-Regular.ttf: "Noto Sans Masaram Gondi" "Regular"
    NotoSansGunjalaGondi-Regular.ttf: "Noto Sans Gunjala Gondi" "Regular"
    NotoSansChorasmian-Regular.ttf: "Noto Sans Chorasmian" "Regular"
    NotoSansMedefaidrin-Regular.ttf: "Noto Sans Medefaidrin" "Regular"
    NotoSerifOldUyghur-Regular.ttf: "Noto Serif Old Uyghur" "Regular"
    FiraGO-Regular.ttf: "FiraGO" "Regular"
    NotoLoopedLao-Regular.ttf: "Noto Looped Lao" "Regular"
    NotoLoopedThai-Regular.ttf: "Noto Looped Thai" "Regular"
    NotoSansElymaic-Regular.ttf: "Noto Sans Elymaic" "Regular"
    NotoSansNandinagari-Regular.ttf: "Noto Sans Nandinagari" "Regular"
    NotoSerifDivesAkuru-Regular.ttf: "Noto Serif Dives Akuru" "Regular"
    NotoSerifMakasar-Regular.ttf: "Noto Serif Makasar" "Regular"
    NotoSerifNyiakengPuachueHmong-Regular.ttf: "Noto Serif Hmong Nyiakeng" "Regular"
    NotoSerifYezidi-Regular.ttf: "Noto Serif Yezidi" "Regular"
    Ubuntu-C.ttf: "Ubuntu Condensed" "Regular"
    Ubuntu-R.ttf: "Ubuntu" "Regular"
    Symbola.otf: "Symbola" "Regular"
    DejaVuSerif-Italic.ttf: "DejaVu Serif" "Italic"
    LiberationSerif-Italic.ttf: "Liberation Serif" "Italic"
    DejaVuSans-Oblique.ttf: "DejaVu Sans" "Oblique"
    DejaVuSans-BoldOblique.ttf: "DejaVu Sans" "Bold Oblique"
    NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"

-- 
Protesilaos Stavrou
https://protesilaos.com
Details
Message ID
<871qwmzmkf.fsf@nadanix.com>
In-Reply-To
<87wneflg5t.fsf@protesilaos.com> (view parent)
DKIM signature
missing
Download raw message
> From: Protesilaos Stavrou <info@protesilaos.com>
> Date: Sat, 21 May 2022 06:26:38 +0300
>
> It does not really matter, as I applied your change.  Still it is good
> to know what is actually happening on your end.  Could the default
> settings be substituting "Monospace" with some font like DejaVu Sans
> Mono?

juanjop@x2100 ~> fc-match -s Monospace
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
DejaVuSansMono-Bold.ttf: "DejaVu Sans Mono" "Bold"
DejaVuSansMono-Oblique.ttf: "DejaVu Sans Mono" "Oblique"
iosevka-comfy-wide-fixed-regular.ttf: "Iosevka Comfy Wide Fixed" "Extended"
Hack-Regular.ttf: "Hack" "Regular"
FreeMono.ttf: "FreeMono" "Regular"
FreeSans.ttf: "FreeSans" "Regular"
FreeSerif.ttf: "FreeSerif" "Regular"
FiraSans-Regular.otf: "Fira Sans" "Regular"
DejaVuMathTeXGyre.ttf: "DejaVu Math TeX Gyre" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSerif.ttf: "DejaVu Serif" "Book"
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"
texgyreschola-regular.otf: "TeX Gyre Schola" "Regular"
NotoEmoji-Regular.ttf: "Noto Emoji" "Regular"
unifont.ttf: "Unifont" "Regular"
texgyrechorus-mediumitalic.otf: "TeX Gyre Chorus" "Regular"
DejaVuSerif-Italic.ttf: "DejaVu Serif" "Italic"
LiberationSerif-Italic.ttf: "Liberation Serif" "Italic"
DejaVuSans-BoldOblique.ttf: "DejaVu Sans" "Bold Oblique"
NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"

maybe because my OS set 

juanjop@x2100 /e/f/conf.d> cat 52-nixos-default-fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'urn:fontconfig:fonts.dtd'>
<fontconfig>

  <!-- Default fonts -->
  <alias binding="same">
  <family>sans-serif</family>
  <prefer>
  <family>DejaVu Sans</family>

  </prefer>
</alias>


  <alias binding="same">
  <family>serif</family>
  <prefer>
  <family>DejaVu Serif</family>

  </prefer>
</alias>


  <alias binding="same">
  <family>monospace</family>
  <prefer>
  <family>DejaVu Sans Mono</family>

  </prefer>
</alias>


  <alias binding="same">
  <family>emoji</family>
  <prefer>
  <family>Noto Color Emoji</family>

  </prefer>
</alias>


</fontconfig>


I guess binding "same" to DejaVu Sans Mono makes it "same" that
monospace. Taking priority against prefer without binding.



-- 
Juanjo Presa
https://nadanix.com
Details
Message ID
<87a6bacqao.fsf@protesilaos.com>
In-Reply-To
<871qwmzmkf.fsf@nadanix.com> (view parent)
DKIM signature
pass
Download raw message
> From: Juanjo Presa <juanjo.presa@nadanix.com>
> Date: Sat, 21 May 2022 21:56:48 +0200
>
> maybe because my OS set 
>
> juanjop@x2100 /e/f/conf.d> cat 52-nixos-default-fonts.conf
>
> [... 23 lines elided]
>
>   <alias binding="same">
>   <family>monospace</family>
>   <prefer>
>   <family>DejaVu Sans Mono</family>
>
>   </prefer>
> </alias>
>
> [... 13 lines elided]
>
>
> I guess binding "same" to DejaVu Sans Mono makes it "same" that
> monospace. Taking priority against prefer without binding.

This has to be it.  Or at least some other config like it.  As far as I
can tell, the "same" binding is meant to be a substitution rule: if you
want to make, say, "DjvU Sns" actually use "DejaVu Sans".  It does not
feel right to use it for the generic sans, sans-serif, and monospace
families.

I can send you the entire fonts directory that Arch has, if you want to
check it out.  Though it does not need to be done on this list.

-- 
Protesilaos Stavrou
https://protesilaos.com
Juanjo Presa <juanjop@gmail.com>
Details
Message ID
<87zgj8o19h.fsf@nadanix.com>
In-Reply-To
<87a6bacqao.fsf@protesilaos.com> (view parent)
DKIM signature
pass
Download raw message
> From: Protesilaos Stavrou <info@protesilaos.com>
> Date: Sun, 22 May 2022 04:24:47 +0300
>
>> From: Juanjo Presa <juanjo.presa@nadanix.com>
>> Date: Sat, 21 May 2022 21:56:48 +0200
>>
>> maybe because my OS set 
>>
>> juanjop@x2100 /e/f/conf.d> cat 52-nixos-default-fonts.conf
>>
>> [... 23 lines elided]
>>
>>   <alias binding="same">
>>   <family>monospace</family>
>>   <prefer>
>>   <family>DejaVu Sans Mono</family>
>>
>>   </prefer>
>> </alias>
>>
>> [... 13 lines elided]
>>
>>
>> I guess binding "same" to DejaVu Sans Mono makes it "same" that
>> monospace. Taking priority against prefer without binding.
>
> This has to be it.  Or at least some other config like it.  As far as I
> can tell, the "same" binding is meant to be a substitution rule: if you
> want to make, say, "DjvU Sns" actually use "DejaVu Sans".  It does not
> feel right to use it for the generic sans, sans-serif, and monospace
> families.

Sure, it have not sense, I'll report it upstream in NixOS repository.

> I can send you the entire fonts directory that Arch has, if you want to
> check it out.  Though it does not need to be done on this list.

No prob, also fontconfig itself has it own configuration files set.

-- 
Juanjo Presa
https://nadanix.com
Details
Message ID
<87pmk37dbh.fsf@protesilaos.com>
In-Reply-To
<87zgj8o19h.fsf@nadanix.com> (view parent)
DKIM signature
pass
Download raw message
> From: Juanjo Presa <juanjop@gmail.com>
> Date: Mon, 23 May 2022 14:56:58 +0200
>
>>> I guess binding "same" to DejaVu Sans Mono makes it "same" that
>>> monospace. Taking priority against prefer without binding.
>>
>> This has to be it.  Or at least some other config like it.  As far as I
>> can tell, the "same" binding is meant to be a substitution rule: if you
>> want to make, say, "DjvU Sns" actually use "DejaVu Sans".  It does not
>> feel right to use it for the generic sans, sans-serif, and monospace
>> families.
>
> Sure, it have not sense, I'll report it upstream in NixOS repository.

Okay.  Please keep me posted.

-- 
Protesilaos Stavrou
https://protesilaos.com
Juanjo Presa <juanjop@gmail.com>
Details
Message ID
<87edzux7ob.fsf@nadanix.com>
In-Reply-To
<87pmk37dbh.fsf@protesilaos.com> (view parent)
DKIM signature
pass
Download raw message
> From: Protesilaos Stavrou <info@protesilaos.com>
> Date: Tue, 24 May 2022 07:40:50 +0300
>
> Okay.  Please keep me posted.

https://github.com/NixOS/nixpkgs/pull/177411

-- 
Juanjo Presa
https://nadanix.com
Reply to thread Export thread (mbox)