How do I alias one of the weights of a font family with fontconfig?How do I alias the bold weight of a font...
Is there any good reason to write "it is easy to see"?
Is there an academic word that means "to split hairs over"?
What dog breeds survive the apocalypse for generations?
Was this seat-belt sign activation standard procedure?
A case where Bishop for knight isn't a good trade
Filter a data-frame and add a new column according to the given condition
Where to find every-day healthy food near Heathrow Airport?
What information exactly does an instruction cache store?
Do we have C++20 ranges library in GCC 9?
Is it safe to use two single-pole breakers for a 240 V circuit?
Re-testing of regression test bug fixes or re-run regression tests?
Were any toxic metals used in the International Space Station?
Can a tourist shoot a gun for recreational purpose in the USA?
Show solution to recurrence is never a square
Why weren't the bells paid heed to in S8E5?
Why are BJTs common in output stages of power amplifiers?
Do not cross the line!
Would life always name the light from their sun "white"
"The van's really booking"
Under what charges was this character executed in Game of Thrones, The Bells?
Why didn't the Avengers use this object earlier?
Why does SSL Labs now consider CBC suites weak?
How about space ziplines
Mark command as obsolete
How do I alias one of the weights of a font family with fontconfig?
How do I alias the bold weight of a font family to the bold weight of another font family?Setting up Helvetica with fontconfig?Setting up Helvetica with fontconfigHow do I figure out which font file is chosen for a system generic font alias?Firefox substitute wrong fallback font with normal weightHow do I alias the bold weight of a font family to the bold weight of another font family?How does fontconfig actually work?Adding a custom font to fontconfigFontconfig question about font substitution orderChanging font family for characters of a certain language/script using fontconfig?fontconfig: how to configure proggycleanTT font properly
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have the font Fira Code installed on my computer but I can't target its bold variant using fontconfig in the same way I do with its other variants. Here's what fc-match
gives me:
$ fc-match "Fira Code"
FiraCode_Regular.otf: "Fira Code" "Regular"
$ fc-match "Fira Code Light"
FiraCode_Light.otf: "Fira Code" "Light"
$ fc-match "Fira Code Medium"
FiraCode_Medium.otf: "Fira Code" "Medium"
$ fc-match "Fira Code Bold"
NotoSans-Regular.ttc: "Noto Sans" "Regular"
Noto Sans is my fallback font which I think means that Fira Code Bold
doesn't have any matches with any of my fonts.
However, it does match the right one if I run fc-match
with Fira Code:Bold
.
$ fc-match "Fira Code:Bold"
FiraCode_Bold.otf: "Fira Code" "Bold"
Following this question, I created a file called 30-fira-code-bold.conf
within ~/.config/fontconfig/conf.d/
with the following content:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="family"><string>Fira Code</string></test>
<test name="weight" compare="more_eq"><const>bold</const></test>
<edit name="family" mode="assign" binding="strong"><string>Fira Code Bold</string></edit>
</match>
</fontconfig>
and then I ran fc-cache -rv
and logged out but it still gives me Noto Sans if I run $ fc-match "Fira Code Bold"
. The only difference I have noticed is that it gives me Noto Sans even if I run $ fc-match "Fira Code:Bold"
; so basically I can't target the bold variant of Fira Code in any way now.
I'm running Archlinux, if it can help, and this is the output of fc-list
:
$ fc-list "Fira Code" | egrep -o 'FiraCode.*'
FiraCode_Medium.otf: Fira Code,Fira Code Medium:style=Medium,Regular
FiraCode_Light.otf: Fira Code,Fira Code Light:style=Light,Regular
FiraCode_Regular.otf: Fira Code:style=Regular
FiraCode_Bold.otf: Fira Code:style=Bold
Can anyone tell me how I can target Fira Code Bold using "Fira Code Bold"?
fonts fontconfig
add a comment |
I have the font Fira Code installed on my computer but I can't target its bold variant using fontconfig in the same way I do with its other variants. Here's what fc-match
gives me:
$ fc-match "Fira Code"
FiraCode_Regular.otf: "Fira Code" "Regular"
$ fc-match "Fira Code Light"
FiraCode_Light.otf: "Fira Code" "Light"
$ fc-match "Fira Code Medium"
FiraCode_Medium.otf: "Fira Code" "Medium"
$ fc-match "Fira Code Bold"
NotoSans-Regular.ttc: "Noto Sans" "Regular"
Noto Sans is my fallback font which I think means that Fira Code Bold
doesn't have any matches with any of my fonts.
However, it does match the right one if I run fc-match
with Fira Code:Bold
.
$ fc-match "Fira Code:Bold"
FiraCode_Bold.otf: "Fira Code" "Bold"
Following this question, I created a file called 30-fira-code-bold.conf
within ~/.config/fontconfig/conf.d/
with the following content:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="family"><string>Fira Code</string></test>
<test name="weight" compare="more_eq"><const>bold</const></test>
<edit name="family" mode="assign" binding="strong"><string>Fira Code Bold</string></edit>
</match>
</fontconfig>
and then I ran fc-cache -rv
and logged out but it still gives me Noto Sans if I run $ fc-match "Fira Code Bold"
. The only difference I have noticed is that it gives me Noto Sans even if I run $ fc-match "Fira Code:Bold"
; so basically I can't target the bold variant of Fira Code in any way now.
I'm running Archlinux, if it can help, and this is the output of fc-list
:
$ fc-list "Fira Code" | egrep -o 'FiraCode.*'
FiraCode_Medium.otf: Fira Code,Fira Code Medium:style=Medium,Regular
FiraCode_Light.otf: Fira Code,Fira Code Light:style=Light,Regular
FiraCode_Regular.otf: Fira Code:style=Regular
FiraCode_Bold.otf: Fira Code:style=Bold
Can anyone tell me how I can target Fira Code Bold using "Fira Code Bold"?
fonts fontconfig
add a comment |
I have the font Fira Code installed on my computer but I can't target its bold variant using fontconfig in the same way I do with its other variants. Here's what fc-match
gives me:
$ fc-match "Fira Code"
FiraCode_Regular.otf: "Fira Code" "Regular"
$ fc-match "Fira Code Light"
FiraCode_Light.otf: "Fira Code" "Light"
$ fc-match "Fira Code Medium"
FiraCode_Medium.otf: "Fira Code" "Medium"
$ fc-match "Fira Code Bold"
NotoSans-Regular.ttc: "Noto Sans" "Regular"
Noto Sans is my fallback font which I think means that Fira Code Bold
doesn't have any matches with any of my fonts.
However, it does match the right one if I run fc-match
with Fira Code:Bold
.
$ fc-match "Fira Code:Bold"
FiraCode_Bold.otf: "Fira Code" "Bold"
Following this question, I created a file called 30-fira-code-bold.conf
within ~/.config/fontconfig/conf.d/
with the following content:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="family"><string>Fira Code</string></test>
<test name="weight" compare="more_eq"><const>bold</const></test>
<edit name="family" mode="assign" binding="strong"><string>Fira Code Bold</string></edit>
</match>
</fontconfig>
and then I ran fc-cache -rv
and logged out but it still gives me Noto Sans if I run $ fc-match "Fira Code Bold"
. The only difference I have noticed is that it gives me Noto Sans even if I run $ fc-match "Fira Code:Bold"
; so basically I can't target the bold variant of Fira Code in any way now.
I'm running Archlinux, if it can help, and this is the output of fc-list
:
$ fc-list "Fira Code" | egrep -o 'FiraCode.*'
FiraCode_Medium.otf: Fira Code,Fira Code Medium:style=Medium,Regular
FiraCode_Light.otf: Fira Code,Fira Code Light:style=Light,Regular
FiraCode_Regular.otf: Fira Code:style=Regular
FiraCode_Bold.otf: Fira Code:style=Bold
Can anyone tell me how I can target Fira Code Bold using "Fira Code Bold"?
fonts fontconfig
I have the font Fira Code installed on my computer but I can't target its bold variant using fontconfig in the same way I do with its other variants. Here's what fc-match
gives me:
$ fc-match "Fira Code"
FiraCode_Regular.otf: "Fira Code" "Regular"
$ fc-match "Fira Code Light"
FiraCode_Light.otf: "Fira Code" "Light"
$ fc-match "Fira Code Medium"
FiraCode_Medium.otf: "Fira Code" "Medium"
$ fc-match "Fira Code Bold"
NotoSans-Regular.ttc: "Noto Sans" "Regular"
Noto Sans is my fallback font which I think means that Fira Code Bold
doesn't have any matches with any of my fonts.
However, it does match the right one if I run fc-match
with Fira Code:Bold
.
$ fc-match "Fira Code:Bold"
FiraCode_Bold.otf: "Fira Code" "Bold"
Following this question, I created a file called 30-fira-code-bold.conf
within ~/.config/fontconfig/conf.d/
with the following content:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="family"><string>Fira Code</string></test>
<test name="weight" compare="more_eq"><const>bold</const></test>
<edit name="family" mode="assign" binding="strong"><string>Fira Code Bold</string></edit>
</match>
</fontconfig>
and then I ran fc-cache -rv
and logged out but it still gives me Noto Sans if I run $ fc-match "Fira Code Bold"
. The only difference I have noticed is that it gives me Noto Sans even if I run $ fc-match "Fira Code:Bold"
; so basically I can't target the bold variant of Fira Code in any way now.
I'm running Archlinux, if it can help, and this is the output of fc-list
:
$ fc-list "Fira Code" | egrep -o 'FiraCode.*'
FiraCode_Medium.otf: Fira Code,Fira Code Medium:style=Medium,Regular
FiraCode_Light.otf: Fira Code,Fira Code Light:style=Light,Regular
FiraCode_Regular.otf: Fira Code:style=Regular
FiraCode_Bold.otf: Fira Code:style=Bold
Can anyone tell me how I can target Fira Code Bold using "Fira Code Bold"?
fonts fontconfig
fonts fontconfig
edited 23 mins ago
brainplot
asked Sep 15 '17 at 8:07
brainplotbrainplot
1019
1019
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
By testing around from other fontconfig files, the right configuration file which seems to be working is the one below:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>Fira Code Bold</string>
</test>
<edit name="family" binding="same" mode="prepend">
<string>Fira Code</string>
</edit>
<edit name="weight" binding="same" mode="prepend">
<const>bold</const>
</edit>
</match>
</fontconfig>
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f392380%2fhow-do-i-alias-one-of-the-weights-of-a-font-family-with-fontconfig%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
By testing around from other fontconfig files, the right configuration file which seems to be working is the one below:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>Fira Code Bold</string>
</test>
<edit name="family" binding="same" mode="prepend">
<string>Fira Code</string>
</edit>
<edit name="weight" binding="same" mode="prepend">
<const>bold</const>
</edit>
</match>
</fontconfig>
add a comment |
By testing around from other fontconfig files, the right configuration file which seems to be working is the one below:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>Fira Code Bold</string>
</test>
<edit name="family" binding="same" mode="prepend">
<string>Fira Code</string>
</edit>
<edit name="weight" binding="same" mode="prepend">
<const>bold</const>
</edit>
</match>
</fontconfig>
add a comment |
By testing around from other fontconfig files, the right configuration file which seems to be working is the one below:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>Fira Code Bold</string>
</test>
<edit name="family" binding="same" mode="prepend">
<string>Fira Code</string>
</edit>
<edit name="weight" binding="same" mode="prepend">
<const>bold</const>
</edit>
</match>
</fontconfig>
By testing around from other fontconfig files, the right configuration file which seems to be working is the one below:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>Fira Code Bold</string>
</test>
<edit name="family" binding="same" mode="prepend">
<string>Fira Code</string>
</edit>
<edit name="weight" binding="same" mode="prepend">
<const>bold</const>
</edit>
</match>
</fontconfig>
answered Sep 15 '17 at 10:49
brainplotbrainplot
1019
1019
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f392380%2fhow-do-i-alias-one-of-the-weights-of-a-font-family-with-fontconfig%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown