tag:support.markedapp.com,2011-09-11:/discussions/problems/136783-zooming-inout-in-preview-mode-changes-font-size-in-exported-pdfMarked: Discussion 2018-06-15T14:14:52Ztag:support.markedapp.com,2011-09-11:Comment/422381192017-03-27T05:33:26Z2017-03-27T05:33:28ZZooming in/out in preview mode changes font size in exported pdf<div><p>Thank you for the help.</p>
<p>// Please enter a detailed description of the issue // Description of the issue: Zooming in or out in preview mode changes the font size in the exported pdf.</p>
<p>// Please enter a list of steps required to reproduce the issue // Steps to reproduce:</p>
<ol>
<li>Open a random text in Marked2<br></li>
<li>Zoom in, say to 160%<br></li>
<li>Export to PDF or print. Here you have huge letters.</li>
</ol>
<p>// If applicable please attach a sample document that causes the issue for you.</p>
<p>// Configuration (do not edit) Marked 2 930 (Direct)</p>
<h2><a name="os-x-version-10-11-6-" class="anchor" href="#os-x-version-10-11-6-"></a>OS X Version: 10.11.6</h2>
<p>additionalMathJaxConfig:<br>
allowPageBreakInCode: 1<br>
bookTxtIsLeanpub: 0<br>
summaryMdIsGitBook: 0<br>
codeIsPoetry: 0<br>
collapsibleHeadlines: 1<br>
convertGithubCheckboxes: 1<br>
convertYAMLToMMD: 1<br>
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML<br>
defaultPreviewStyle: 101<br>
defaultProcessor: MultiMarkdown<br>
enableMiniMap: 0<br>
excludeBlockQuotesFromCounts: 0<br>
excludeFootnotesFromCounts: 0<br>
excludeVerbatimFromCounts: 0<br>
excludeCaptionsFromCounts: 0<br>
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml<br>
githubNewlines: 0<br>
h1IsPageBreak: 0<br>
h2IsPageBreak: 0<br>
hrIsPageBreak: 0<br>
includeMathJax: 0<br>
limitTextWidth: 1<br>
minimalJavaScript: 0<br>
outlineModeExtensions:<br>
permissionGranted: 1<br>
printHeaderBottomLeft:<br>
printHeaderBottomRight: %page<br>
printHeaderFooterFirstPage: 1<br>
printHeaderTopLeft:<br>
printHeaderTopRight: %date<br>
processHTMLFiles: 1<br>
removeMetadataForPreview: 0<br>
removeYAMLHeaders: 0<br>
scrollToEdit: 1<br>
shouldDetectCritic: 1<br>
shouldHighlightMarkupErrors: 1<br>
shouldLoadCritic: 0<br>
syntaxHighlight: 1</p></div>Ufuk Kizilgediktag:support.markedapp.com,2011-09-11:Comment/422381192017-03-27T17:01:49Z2017-03-27T17:01:49ZZooming in/out in preview mode changes font size in exported pdf<div><p>This is currently expected behavior. It provides an easier way to adjust<br>
the output size than having to specify a universal font size or custom<br>
CSS for print/PDF output of a given document. I understand that it's not<br>
necessarily intuitive, though, so I may add an export option to always<br>
print/export at 100%.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/422381192018-06-12T16:34:51Z2018-06-12T16:34:53ZZooming in/out in preview mode changes font size in exported pdf<div><p>Apologies if this is already answered, I've seen this topic come up in different contexts on but couldn't figure out the final answer.</p>
<p>My goal is to produce a document with 10pt font (not by choice, FWIW, by requirement). I ended up doing the following:</p>
<ul>
<li>Choose Swiss</li>
<li>Select 70% zoom because I see in CSS:</li>
</ul>
<p>body {<br>
font-size: 15px; --> 10/15 ~ .67 line-height: 21px; margin: 0 auto; }</p>
<p>So this works Good Enough. What I'm not so clear on is the meaning of the option:</p>
<p>"Custom font size for export ".</p>
<p>Clicking On and Setting this to different values seems to change the exported output but not to 10 pt. Perhaps some sort of scaled-10-pt?</p></div>Scott Jamestag:support.markedapp.com,2011-09-11:Comment/422381192018-06-13T19:25:29Z2018-06-13T19:25:29ZZooming in/out in preview mode changes font size in exported pdf<div><p>The custom font size essentially adds a <code>font-size: XXpx !important</code> to the output, which <em>should</em> override whatever is in the style. It's a bit screwy right now, as half of the built-in styles are using <code>rem/em</code> to base sizes off of what's specified for the html/body. Because I assume that when setting a custom font size, users would still want headlines and other elements that differ from the paragraph font size to scale accordingly, I'm going to need to find a way to normalize the themes and provide a mechanism that will work with unpredictable custom themes.</p>
<p>So at this point, the "Custom font size for export" is a bit of a gamble. If you need an exact output font size, the best bet right now is to create a custom theme that outputs exactly what you intend. All of the CSS for the default styles as well as a collection of custom styles is available at <a href="https://github.com/ttscoff/markedcustomstyles">https://github.com/ttscoff/markedcustomstyles</a>.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/422381192018-06-15T14:14:51Z2018-06-15T14:14:52ZZooming in/out in preview mode changes font size in exported pdf<div><p>Thanks for the detailed explanation. They accepted my zoom-ing hack for now, so I’m good. But if they get persnickety I’ll do as you say with the explicit CSS.</p></div>scott.james