Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-30-2021, 04:21 PM   #1
AACC88
Junior Member
AACC88 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2021
Device: Kindle123
Why can't ePub font be bold?

Why can't ePub font be bold?
Do I need to change stylesheet.css or content.opf?
I use Sigil 0.9.10.
AACC88 is offline   Reply With Quote
Old 06-30-2021, 04:32 PM   #2
AACC88
Junior Member
AACC88 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2021
Device: Kindle123
None of the following codes are valid:
<b> </b>
<bold> </bold>
<span class="bold"> </span>
AACC88 is offline   Reply With Quote
Advert
Old 06-30-2021, 04:35 PM   #3
AACC88
Junior Member
AACC88 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2021
Device: Kindle123
Stylesheet.css:
.bold {
font-weight: bold
}
.calibre {
display: block;
font-size: 1em;
padding-left: 0;
padding-right: 0;
text-align: justify;
margin: 0 5pt
}
h1 {
display: block;
font-size: 1.5em;
font-weight: bold;
line-height: 1;
margin-top: 1px;
margin-bottom: 4px;
}
h2 {
display: block;
font-size: 1.3em;
font-weight: bold;
line-height: 1;
margin-top: 1px;
margin-bottom: 4px;
}
.calibre4 {
color: gray;
display: block;
height: 2px;
border: currentColor inset 1px;
margin-top: 8px;
margin-bottom: 5px;
}
.calibre5 {
line-height: 0.5;
}
h3 {
display: block;
font-size: 1.1em;
font-weight: bold;
line-height: 1;
margin-top: 1px;
margin-bottom: 1px;
}
.bottom
{
vertical-align: -16%;
}
.mbp_pagebreak {
display: block;
margin: 0
}
AACC88 is offline   Reply With Quote
Old 06-30-2021, 06:23 PM   #4
skb
Evangelist
skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.skb ought to be getting tired of karma fortunes by now.
 
skb's Avatar
 
Posts: 401
Karma: 1597305
Join Date: Mar 2010
Device: Ipod G4, MacOS 10.12, Calibre, Pocketbook Touch HD 3
I don't really know, but perhaps use <strong> or .strong ? Or, perhaps, failing that, can you embed a bold font (I honestly don't know if this is even possible)?

Sorry if this doesn't work (I only know webpages, not ebook technical stuff).

Good luck - I'm sure someone will know for sure.
skb is offline   Reply With Quote
Old 06-30-2021, 06:27 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,757
Karma: 168431891
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Perhaps you might consider updating your copy of Sigil to a newer version?

Perhaps the font you are attempting to use does not have a bold variant available?
DNSB is offline   Reply With Quote
Advert
Old 06-30-2021, 06:28 PM   #6
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Why are you using an old version of Sigil?

But that shouldn't make any difference. Here's a test using both the standard tag for bold and your stylesheet.


https://www.mobileread.com/forums/at...1&d=1625092067
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2021-06-30 232451.png
Views:	294
Size:	39.2 KB
ID:	187949  
exaltedwombat is offline   Reply With Quote
Old 06-30-2021, 06:29 PM   #7
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
There must be something else wrong in your books, because bold works perfectly fine.

Either of these is correct:

Code:
<p>This is <b>bold text</b>.</p>
<p>This is <strong>bold text</strong>.</p>
or:

Code:
<p>This is <span class="bold">bold text</span>.</p>
with CSS:

Code:
span.bold {
	font-weight: bold;
}
How are you testing this?

And where exactly is the bold not showing up?
Tex2002ans is offline   Reply With Quote
Old 06-30-2021, 06:32 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,757
Karma: 168431891
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
And please don't post the same content in multiple spots.
DNSB is offline   Reply With Quote
Old 06-30-2021, 08:32 PM   #9
AACC88
Junior Member
AACC88 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2021
Device: Kindle123
Thank you.
I hope I don't use <p> </P>.
<strong> </strong> can be bold.
AACC88 is offline   Reply With Quote
Old 06-30-2021, 08:34 PM   #10
AACC88
Junior Member
AACC88 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2021
Device: Kindle123
Thank you.
I hope I don't use <p> </P>.
<strong> </strong> can be bold.
AACC88 is offline   Reply With Quote
Old 06-30-2021, 08:56 PM   #11
AACC88
Junior Member
AACC88 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2021
Device: Kindle123
Where is the book view of Sigil 1.6?

Where is the book view of Sigil 1.6?
I only see code view.
AACC88 is offline   Reply With Quote
Old 06-30-2021, 09:11 PM   #12
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,582
Karma: 14328510
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by AACC88 View Post
Where is the book view of Sigil 1.6?
I only see code view.
Try F10
hobnail is offline   Reply With Quote
Old 07-01-2021, 03:41 AM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,088
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Why would you not use <p> </p>?
JSWolf is offline   Reply With Quote
Old 07-01-2021, 06:51 AM   #14
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,624
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Duplicate threads merged.
pdurrant is offline   Reply With Quote
Old 07-01-2021, 08:01 AM   #15
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,304
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
You won’t see bold text in code view, you will only see the coding. Hit F10 to enable the window showing you what it looks like.

If that doesn’t work make sure you have linked the style sheet to your html sheet for the class declarations - obviously <b><strong> works without a stylesheet by using the default styles
Turtle91 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to converse bold font into normal font output in calibre? Percivale Kobo Reader 3 11-09-2015 09:21 PM
Entire book in a bold font Bigo2 Conversion 14 03-28-2014 02:42 AM
Kindle: How Can I Set Font To Bold wander Conversion 0 11-17-2012 10:03 AM
Re Entering Title in Bold or Bold And Colour Font pricespringer Library Management 1 05-09-2011 04:45 AM
Bold font issue kakkalla Calibre 14 01-20-2011 04:55 AM


All times are GMT -4. The time now is 02:23 AM.


MobileRead.com is a privately owned, operated and funded community.