Closed shiffman closed 11 years ago
Weird. Should be an easy fix. I'll look at it as soon as I find a pocket of time.
It looks like "ProximaNova-Regular" is not getting recognized by Prince. Switching to
font-family: "ProximaNova-Bold";
works just fine.
Why would this be?
Regarding the h2 element, it can be squashed with CSS as follow:
body>h2:nth-child(2) {
display: none;
}
This should not cause any other h2 elements to be hidden as rendering to html includes wrapper divs so body>h2
will never be true. And the PDF is rendered as an entire page.
I've pushed branch issue-141 to shiffman/the-nature-of-code@4a438ef to work on this issue.
I've switched the h1 and h2 font to ProximaNova-Bold, it might be inappropriate for the h2.
Closing the issue but leaving a note in the CSS about the font.
I'm not sure if this is a magic-book issue (or just something for my CSS in the NOC repo), but having some issues with h1.
It appears the CSS rules are being overriden by the "user agent stylesheet" so this is not being applied:
In addition, an empty h2 is being inserted immediately after the book title, which is causing a page break on my title page.