[Libreoffice-commits] core.git: vcl/inc

Chris Sherlock chris.sherlock79 at gmail.com
Thu Dec 24 17:23:15 PST 2015


 vcl/inc/PhysicalFontFace.hxx |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

New commits:
commit 125cdf3404e60cf78f2a5547e9a06ce994df5c8e
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Fri Dec 25 12:21:26 2015 +1100

    vcl: note about physical and logical fonts
    
    Change-Id: I8e767ed61b93e1099f6e10ef77e813ba4e8d22db

diff --git a/vcl/inc/PhysicalFontFace.hxx b/vcl/inc/PhysicalFontFace.hxx
index aed2f03..7d0b43c 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:


More information about the Libreoffice-commits mailing list