I have two fonts in my book, both ttf files, and both show properly in Windows 11's font previewer, but one (minbari2.ttf) does not show in Sigil's font viewer, nor does it work when invoked within an xhtml.
So, the font is in the Fonts folder, added via Sigil's new drag-drop box (I use this a lot more than I thought I would!); I have another font with the same usage that works correctly; neither font is being obfuscated, per the Font Obfuscation context menu; my css is:
and my xhtml is:
In this example, the Minbari font does not work, but the Narn one does.
I've seen this before with previous Sigil (and Windows)versions, but I was usually able to just find another font; this time I figured I'd bring it up here on point of principle.
The font itself is about thirty years old, so I suspect the issue is due to some depleted dilithium or somesuch, but it strikes me as odd that Windows can render it but not Sigil.
So, given that the issue is with the font and not Sigil, I guess my question is twofold:
1) Is there a way to "repair" the font, or get it working properly in my book, and
2) Could I suggest that Sigil be able to throw an error if it can detect an imported font, but not be able to render it for whatever reason?
Bonus: This is maybe an unrelated nice-to-have, but would it be possible to allow copying selected text within Sigil's font viewer? With an alien or symbolic font, it'd be nice to copy the line displaying the file size somewhere to read it, so I don't have to learn Minbari or Narn. ;)
edit: I checked with the css validator and nothing seems specifically untoward regarding the Minbari font.
So, the font is in the Fonts folder, added via Sigil's new drag-drop box (I use this a lot more than I thought I would!); I have another font with the same usage that works correctly; neither font is being obfuscated, per the Font Obfuscation context menu; my css is:
Code:
@font-face {
font-family: "minbari2";
font-style: normal;
font-weight: normal;
src: url(../Fonts/minbari2.ttf);
}
@font-face {
font-family: "narn";
font-style: normal;
font-weight: normal;
src: url(../Fonts/narn.ttf);
}
.f-min {
font-family: "minbari2";
}
.f-nar {
font-family: "narn";
}Code:
<h1 class="f-min">There is a hole in your mind.</h1>
<h1 class="f-nar">You do not make history. You can only hope to survive it.</h1>I've seen this before with previous Sigil (and Windows)versions, but I was usually able to just find another font; this time I figured I'd bring it up here on point of principle.
The font itself is about thirty years old, so I suspect the issue is due to some depleted dilithium or somesuch, but it strikes me as odd that Windows can render it but not Sigil.
So, given that the issue is with the font and not Sigil, I guess my question is twofold:
1) Is there a way to "repair" the font, or get it working properly in my book, and
2) Could I suggest that Sigil be able to throw an error if it can detect an imported font, but not be able to render it for whatever reason?
Bonus: This is maybe an unrelated nice-to-have, but would it be possible to allow copying selected text within Sigil's font viewer? With an alien or symbolic font, it'd be nice to copy the line displaying the file size somewhere to read it, so I don't have to learn Minbari or Narn. ;)
edit: I checked with the css validator and nothing seems specifically untoward regarding the Minbari font.
Code:
2 Value Error : font-family Property font-family doesn't exist in CSS level 2.1 but exists in [css1, css2, css3] : "minbari2"
3 Value Error : font-style Property font-style doesn't exist in CSS level 2.1 but exists in [css1, css2, css3] : normal
4 Value Error : font-weight Property font-weight doesn't exist in CSS level 2.1 but exists in [css1, css2, css3] : normal
5 Property src doesn't exist : url(../Fonts/minbari2.ttf)
9 Value Error : font-family Property font-family doesn't exist in CSS level 2.1 but exists in [css1, css2, css3] : "narn"
10 Value Error : font-style Property font-style doesn't exist in CSS level 2.1 but exists in [css1, css2, css3] : normal
11 Value Error : font-weight Property font-weight doesn't exist in CSS level 2.1 but exists in [css1, css2, css3] : normal
12 Property src doesn't exist : url(../Fonts/narn.ttf)






