summaryrefslogtreecommitdiff
path: root/include/unotools
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-05-06 12:08:04 +0300
committerTor Lillqvist <tml@collabora.com>2015-05-06 12:14:25 +0300
commitfa405087c6345053580fb9d8eca46c6ca71c18d9 (patch)
treede7bab1efbf9b486f1034b397bbb1763a27a042a /include/unotools
parent74778b12f4f662e45ca8915739ab52b4402fde49 (diff)
Add comments about ImplFontAttrs
Change-Id: I32d8b8f4301188245721d31fd234bb1784a1ae8d
Diffstat (limited to 'include/unotools')
-rw-r--r--include/unotools/fontcfg.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/unotools/fontcfg.hxx b/include/unotools/fontcfg.hxx
index 1d181a9b8b16..c13e4a5a4138 100644
--- a/include/unotools/fontcfg.hxx
+++ b/include/unotools/fontcfg.hxx
@@ -34,6 +34,15 @@
enum class DefaultFontType;
+// If you think the below concept of classifying a font (typeface) as possibly being one or several
+// of "Default", "Standard", and "Normal", etc, is madness, you are probably right. On the other
+// hand we have in officecfg/registry/data/org/openoffice/VCL.xcu carefully (or not) assigned to
+// each font mentioned in that file what its attributes are, so it is quite possible that touching
+// this would cause a regression that nobody would notice until after many years.
+
+// Note that the bit flags must match the entries in the pAttribNames array in
+// unotools/source/config/fontcfg.cxx.
+
enum class ImplFontAttrs : sal_uLong
{
None = 0x00000000,