summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2015-12-25 12:21:26 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2015-12-25 12:21:48 +1100
commit125cdf3404e60cf78f2a5547e9a06ce994df5c8e (patch)
treeb5dae75e1e2294db7a55a02d0f30bb7d85c01bbf /vcl
parenta20a52a2f47c67ab30bf764d420c663f7173f032 (diff)
vcl: note about physical and logical fonts
Change-Id: I8e767ed61b93e1099f6e10ef77e813ba4e8d22db
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/PhysicalFontFace.hxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcl/inc/PhysicalFontFace.hxx b/vcl/inc/PhysicalFontFace.hxx
index aed2f031b20a..7d0b43c0a43e 100644
--- a/vcl/inc/PhysicalFontFace.hxx
+++ b/vcl/inc/PhysicalFontFace.hxx
@@ -46,6 +46,23 @@ public:
// TODO: make cloning cheaper
// abstract base class for physical font faces
+
+// Note about physical and logical fonts:
+//
+// A physical font is a concept we have taken from the Java world
+//
+// From https://docs.oracle.com/javase/tutorial/2d/text/fonts.html
+//
+// There are two types of fonts: physical fonts and logical fonts.
+// Physical fonts are the actual font libraries consisting of, for
+// example, TrueType or PostScript Type 1 fonts. The physical fonts
+// may be Time, Helvetica, Courier, or any number of other fonts,
+// including international fonts. Logical fonts are the following
+// five font families: Serif, SansSerif, Monospaced, Dialog, and
+// DialogInput. These logical fonts are not actual font libraries.
+// Instead, the logical font names are mapped to physical fonts by
+// the Java runtime environment.
+
class VCL_PLUGIN_PUBLIC PhysicalFontFace : public ImplDevFontAttributes
{
public: