Bullet list lose formatting with body font change
If I attempt to change the "Content Formatting" in PDF Exporter to define a new style for the default body font for the PDF template; in the exported file, all bullet lists lose their bullets and in some cases the bullets become very large. (see attachment)
I uploaded the Cambria font in "Resources" and used this to format the body style:
body {
font-family: "Cambria" cambria;
}
Can anyone help me and let me know if there is a way to fix this?
Scroll_PDF_Body_bullet.PNG
-
Hi Andrew,
I've tried to reproduce this (using the Cambria font provided by Windows):
https://img.skitch.com/20120611-k8du6a3fcqixky1q2gt4syebg4.pngDid you upload it via the "Resources" tab or via the "Fonts" tab? (You should use the "Font" tab).
Let me know, if that works.
Cheers,
-Stefan -
Hi Stefan,
Thanks for the prompt reply. I did upload via the "Fonts' tab. However - I'm using a Mac - not Windows - not sure if this has any bearing. I'll include my content formatting here which might help in diagnosing the problem.
/* Enable heading numbering */
@import url('css/common-heading-numbering.css') print;
/* Enable toc numbering */
@import url('css/common-toc-numbering.css') print;
/* Generate border between header/footer and page content */
@page {
border-top: 4px solid yellow;
border-bottom: 4px solid yellow;
}
/* nested list definition*/
/* Level 1: decimal numbers */
.content ol {
list-style-type: decimal;
}
/* Level 2: lowercase letters */
.content ol ol {
list-style-type: lower-alpha;
}
/* Level 3: lowercase roman numbers */
.content ol ol ol {
list-style-type: lower-roman;
}
/* Use Cambria font for the complete document */
body {
font-family: "Cambria" cambria;
}
strong {
font-family: "Cambria Bold" cambria bold;
font-weight: bold;
}
/* Use Calibri font for just for h1 */
h1 {
font-family: "Calibri" Calibri;
font-weight: bold;
}
/* Export on title page */
div.titlepage {
position: relative;
min-height: 220mm;
}
div.titlepage .static {
position: absolute;
bottom: 0;
}
.titlepage .exportinfo {
padding: 2mm 5mm;
background-color: #eeeeee;
}
.titlepage .exportinfo strong {
width: 20mm;
display: block;
float: left;
} -
Hi - As you pointed me in the direction of fonts - I thought I'd try and use another body font - "Times New Roman". Which I did and this resolved the issue. Therefore it must be something to do specifically with the Cambria font. I'll just substitute this with a similar font.
If you manage to find the issue with the Apple Cambria font - let me know - however I'll be fine with a substitution for now.
Thanks for your help - your pointers got me in the right direction for resolving this issue.
Cheers,
Andrew
Please sign in to leave a comment.
Comments
4 comments