Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #270409 > unrolled thread

htmldoc default font size

Started byRoger Price <roger@rogerprice.org>
First post2024-06-23 17:00 +0200
Last post2024-06-23 18:10 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  htmldoc default font size Roger Price <roger@rogerprice.org> - 2024-06-23 17:00 +0200
    Re: htmldoc default font size Dan Ritter <dsr@randomstring.org> - 2024-06-23 18:00 +0200
      Re: htmldoc default font size Roger Price <roger@rogerprice.org> - 2024-06-24 10:20 +0200
    Re: htmldoc default font size eben@gmx.us - 2024-06-23 18:10 +0200

#270409 — htmldoc default font size

FromRoger Price <roger@rogerprice.org>
Date2024-06-23 17:00 +0200
Subjecthtmldoc default font size
Message-ID<ISwRb-4ZRM-11@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

I'm using htmldoc 1.9.11-4+deb11u3 to convert html files to pdf.  When playing 
with the fontsize option I discover that the default is not a whole number, more 
like 11.2 points.  Is this the expected behaviour ?

Background: The manual at https://www.msweet.org/htmldoc/htmldoc.html#3_2_23 
says “The --fontsize option specifies the base font size for the entire document 
in points (1 point = 1/72nd inch)”, but doesn't say what the default value is if 
the option is omitted.

What is the default font size?

Roger

[toc] | [next] | [standalone]


#270410

FromDan Ritter <dsr@randomstring.org>
Date2024-06-23 18:00 +0200
Message-ID<ISxNg-50yu-7@gated-at.bofh.it>
In reply to#270409
Roger Price wrote: 
> I'm using htmldoc 1.9.11-4+deb11u3 to convert html files to pdf.  When
> playing with the fontsize option I discover that the default is not a whole
> number, more like 11.2 points.  Is this the expected behaviour ?
> 
> Background: The manual at https://www.msweet.org/htmldoc/htmldoc.html#3_2_23
> says “The --fontsize option specifies the base font size for the entire
> document in points (1 point = 1/72nd inch)”, but doesn't say what the
> default value is if the option is omitted.
> 
> What is the default font size?

Use this as a test file:

<html><head><title>testfile</title></head>
<body><p>here is the base text</p></body></html>

run it through htmldoc without using a --fontsize option, open
the resulting pdf and measure?

htmldoc is very badly outdated; if you want proper control, you
want to use pandoc (yes, Debian packages it) and a CSS file.

-dsr-

[toc] | [prev] | [next] | [standalone]


#270425

FromRoger Price <roger@rogerprice.org>
Date2024-06-24 10:20 +0200
Message-ID<ISN5D-5bfX-5@gated-at.bofh.it>
In reply to#270410
On Sun, 23 Jun 2024, Dan Ritter wrote:

> Use this as a test file:
>
> <html><head><title>testfile</title></head>
> <body><p>here is the base text</p></body></html>
>
> run it through htmldoc without using a --fontsize option, open
> the resulting pdf and measure?

I no longer have a working printer, but when I get access to one, I'll do 
some measurements.

> htmldoc is very badly outdated; if you want proper control, you
> want to use pandoc (yes, Debian packages it) and a CSS file.

I see at https://pandoc.org/MANUAL.html#variables-for-latex that pandoc has the 
linestretch and fontsize controls for the LaTeX used to produce PDF.

Roger

[toc] | [prev] | [next] | [standalone]


#270411

Fromeben@gmx.us
Date2024-06-23 18:10 +0200
Message-ID<ISxWV-50RQ-1@gated-at.bofh.it>
In reply to#270409
On 6/23/24 10:32, Roger Price wrote:
> I'm using htmldoc 1.9.11-4+deb11u3 to convert html files to pdf.  When
> playing with the fontsize option I discover that the default is not a whole
> number, more like 11.2 points.

Hmm, maybe the author used something in mm?  Weird.  4mm is 11.33 points.

--
An ASCII character walks into a bar and orders a double. "Having a bad
day?" asks the barman. "Yeah, I have a parity error," replies the ASCII
chrcter. The barman says, "Yeah, I thought you looked a bit off." - Skud

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web