lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 4c4abe6 2/6: Store specimen font measurements


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 4c4abe6 2/6: Store specimen font measurements statically for reference
Date: Fri, 25 May 2018 07:00:57 -0400 (EDT)

branch: master
commit 4c4abe6b2db2f2bb2631a7617318905929e1a7b8
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Store specimen font measurements statically for reference
---
 wx_table_generator.cpp | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index f7c7cc4..f2a5d82 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -29,6 +29,9 @@
 
 #include <algorithm>                    // max()
 
+// Default size of various characters for illustrations and group quotes:
+//   'M' 7pt; 'N' 6pt; '1' 4pt; '9' 4pt; ',' 2pt
+
 // Is this a struct only because we want its members to be publicly
 // accessible? But their values can also be changed by clients, and
 // isn't that undesirable?
@@ -474,7 +477,6 @@ void wx_table_generator::compute_column_widths()
 // just because it's shorter and not necessarily worse (nor better).
             }
 
-        // PDF !! Before release, consider showing less information here.
         warning()
             << "Not enough space for all " << number_of_columns << " columns."
             << "\nPrintable width is " << total_width_ << " points."
@@ -482,12 +484,6 @@ void wx_table_generator::compute_column_widths()
             << " points without any margins for legibility."
             << "\nColumn margins of " << column_margin() << " points on both 
sides"
             << " would take up " << 2 * column_margin() * number_of_columns << 
" additional points."
-            << "\nFor reference:"
-            << "\n'M' is " << dc_.GetTextExtent("M").x << " points wide."
-            << "\n'N' is " << dc_.GetTextExtent("N").x << " points wide."
-            << "\n'1' is " << dc_.GetTextExtent("1").x << " points wide."
-            << "\n'9' is " << dc_.GetTextExtent("9").x << " points wide."
-            << "\n',' is " << dc_.GetTextExtent(",").x << " points wide."
             << LMI_FLUSH
             ;
         return;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]