No Bold in PDF using HTML with CSS
Posted: Tue Jul 26, 2022 6:48 pm
Hello, this is a followup to my earlier queries. I have watched the videos and read the Help, but not sure if the guidance is applicable since I used the Styles Basket. I dragged/dropped my fonts into the styles basket UI, and the styles.css has this:
In the browser, elements in DITA that were wrapped in <b> are bold:
But in the PDF, the are not:
Also, TOC entries that seem to be automatically formatted as bold in the broswer:
are not bold in the PDF:
Do you have any suggestions on how to adjust the css so the PDF matches the browser output formatting?
Thank you!
Pat
Code: Select all
@font-face {
font-family: 'BrandingFont';
src: url(resources/primaryBrandingFonts.ttf) format('truetype');
}
@font-face {
font-family: 'SecondaryBrandingFont';
src: url(resources/secondaryBrandingFonts.ttf) format('truetype');
}
@media print {
@page front-page {
background-image: url("resources/cover.svg");
background-repeat: no-repeat;
background-size: 100% 100%;
background-position: center;
}
}
/* Bold selection in Publication TOC. WebHelp only. */
@media screen {
.wh_publication_toc .active > .topicref a {
font-weight: bold;
}
}
But in the PDF, the are not:
Also, TOC entries that seem to be automatically formatted as bold in the broswer:
are not bold in the PDF:
Do you have any suggestions on how to adjust the css so the PDF matches the browser output formatting?
Thank you!
Pat