Some users do not like default font size
Official development repository for Vim's builtin TOhtml plugin
Brought to you by:
fritzophrenic
There is a global style applied to all text to add font-size: 1em. The comment in 2html.vim says it is to "fix browser inconsistencies". See if there is any way around this, or if still needed.
From "Yongwei Wu":
I do not see the point of this. It does not seem to affect the result
in Chrome, but it makes the font larger in IE than without it.
Also:
I think this is dependent on the browser configuration. In my case,
the IE font size with 1 em is apparent bigger than other cases. In
other browsers (with or without 1 em) or IE without 1 em, I get the
standard 10 pt (13 px) Courier New as output.I guess the reason is that the standard CSS in IE has 10 pt Courier
New for, and 12 pt ... for . "font-size: 1em" makes
use 12 pt as well. For some reasons Chrome is not affected by
"font-size: 1em": I verified that it thinks the font-size is still 13
px, the default setting.
Duplicate of https://sourceforge.net/p/vim-tohtml/issues/7/, closing.
Last edit: fritzophrenic 2023-09-18