https://bugs.documentfoundation.org/show_bug.cgi?id=136130
Buovjaga <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|1 |0 Status|REOPENED |UNCONFIRMED --- Comment #11 from Buovjaga <[email protected]> --- The font-size CSS is written in sc/source/filter/html/htmlexp.cxx, concretely here (currently lines 373-374): rStrm.WriteOString("font-size:"); rStrm.WriteOString(GetFontSizeCss(static_cast<sal_uInt16>(aHTMLStyle.nFontHeight))); The used font sizes are defined here (lines 106-117): const sal_uInt16 ScHTMLExport::nDefaultFontSize[SC_HTML_FONTSIZES] = { HTMLFONTSZ1_DFLT, HTMLFONTSZ2_DFLT, HTMLFONTSZ3_DFLT, HTMLFONTSZ4_DFLT, HTMLFONTSZ5_DFLT, HTMLFONTSZ6_DFLT, HTMLFONTSZ7_DFLT }; sal_uInt16 ScHTMLExport::nFontSize[SC_HTML_FONTSIZES] = { 0 }; const char* const ScHTMLExport::pFontSizeCss[SC_HTML_FONTSIZES] = { "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large" }; CSS was first introduced in 2002 with a2f68dbf285db57267e9b6a626ba9a09f0b35fce #98350# use unsharp CSS font-size values instead of HTML size in style In here we see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/absolute-size x-small An absolute size 75% the size of medium. medium A user's preferred font size. This value is used as the reference middle value. Mapped to size="3". So I assume that x-small in the discussed case matches the 10pt default font size in Calc cells. aszazin: if we remove all style information, I foresee angry users complaining that their formatting is missing (background, text colour etc. likely font sizes as well). That's why I pointed to the HTML cleanup request. -- You are receiving this mail because: You are the assignee for the bug.
