MWAWFont.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2 
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33 
34 #ifndef MWAW_FONT
35 # define MWAW_FONT
36 
37 #include <string>
38 #include <vector>
39 
40 #include "libmwaw_internal.hxx"
41 
43 class MWAWFont
44 {
45 public:
47  struct Line {
51  enum Type { Single, Double, Triple };
53  Line(Style style=None, Type type=Single, bool wordFlag=false, float w=1.0) :
54  m_style(style), m_type(type), m_width(w), m_color(MWAWColor::black()), m_word(wordFlag) { }
56  bool isSet() const
57  {
58  return m_style != None && m_width>0;
59  }
61  void addTo(librevenge::RVNGPropertyList &propList, std::string const &type) const;
63  friend std::ostream &operator<<(std::ostream &o, Line const &line);
65  bool operator==(Line const &oth) const
66  {
67  return cmp(oth)==0;
68  }
70  bool operator!=(Line const &oth) const
71  {
72  return cmp(oth)!=0;
73  }
75  int cmp(Line const &oth) const
76  {
77  if (m_style != oth.m_style) return int(m_style)-int(oth.m_style);
78  if (m_type != oth.m_type) return int(m_type)-int(oth.m_type);
79  if (m_word != oth.m_word) return m_word ? -1 : 1;
80  if (m_width < oth.m_width) return -1;
81  if (m_width > oth.m_width) return 1;
82  if (m_color.isSet() != oth.m_color.isSet())
83  return m_color.isSet();
84  if (m_color.get() < oth.m_color.get()) return -1;
85  if (m_color.get() > oth.m_color.get()) return 1;
86  return 0;
87  }
93  float m_width;
97  bool m_word;
98  };
100  struct Script {
102  Script(float delta=0, librevenge::RVNGUnit deltaUnit=librevenge::RVNG_PERCENT, int scale=100) :
103  m_delta(delta), m_deltaUnit(deltaUnit), m_scale(scale)
104  {
105  }
107  bool isSet() const
108  {
109  return *this != Script();
110  }
112  static Script sub()
113  {
114  return Script(-33,librevenge::RVNG_PERCENT,58);
115  }
117  static Script sub100()
118  {
119  return Script(-20);
120  }
122  static Script super()
123  {
124  return Script(33,librevenge::RVNG_PERCENT,58);
125  }
127  static Script super100()
128  {
129  return Script(20);
130  }
132  std::string str(float fSize) const;
133 
135  bool operator==(Script const &oth) const
136  {
137  return cmp(oth)==0;
138  }
140  bool operator!=(Script const &oth) const
141  {
142  return cmp(oth)!=0;
143  }
145  bool operator<(Script const &oth) const
146  {
147  return cmp(oth)<0;
148  }
150  bool operator<=(Script const &oth) const
151  {
152  return cmp(oth)<=0;
153  }
155  bool operator>(Script const &oth) const
156  {
157  return cmp(oth)>0;
158  }
160  bool operator>=(Script const &oth) const
161  {
162  return cmp(oth)>=0;
163  }
165  int cmp(Script const &oth) const
166  {
167  if (m_delta > oth.m_delta) return -1;
168  if (m_delta < oth.m_delta) return 1;
169  if (m_deltaUnit != oth.m_deltaUnit) return int(m_deltaUnit)-int(oth.m_deltaUnit);
170  if (m_scale != oth.m_scale) return m_scale-oth.m_scale;
171  return 0;
172  }
174  float m_delta;
176  librevenge::RVNGUnit m_deltaUnit;
178  int m_scale;
179  };
180 
183  hiddenBit=0x20, outlineBit=0x40, shadowBit=0x80,
190  };
196  MWAWFont(int newId=-1, float sz=12, uint32_t f = 0) : m_id(newId), m_size(sz), m_deltaSpacing(0), m_deltaSpacingUnit(librevenge::RVNG_POINT), m_widthStreching(1), m_scriptPosition(),
198  m_color(MWAWColor::black()), m_backgroundColor(MWAWColor::white()), m_language(""), m_extra("")
199  {
200  resetColor();
201  }
203  bool isSet() const
204  {
205  return m_id.isSet();
206  }
208  void insert(MWAWFont const &ft)
209  {
210  m_id.insert(ft.m_id);
211  m_size.insert(ft.m_size);
216  if (ft.m_flags.isSet()) {
217  if (m_flags.isSet())
218  setFlags(flags()| ft.flags());
219  else
220  m_flags = ft.m_flags;
221  }
222  m_overline.insert(ft.m_overline);
223  m_strikeoutline.insert(ft.m_strikeoutline);
224  m_underline.insert(ft.m_underline);
225  m_color.insert(ft.m_color);
226  m_extra += ft.m_extra;
227  }
229  void setFont(int newId)
230  {
231  resetColor();
232  m_id=newId;
233  }
234 
236  int id() const
237  {
238  return m_id.get();
239  }
241  void setId(int newId)
242  {
243  m_id = newId;
244  }
245 
247  float size() const
248  {
249  return m_size.get();
250  }
252  void setSize(float sz)
253  {
254  m_size = sz;
255  }
256 
258  float deltaLetterSpacing() const
259  {
260  return m_deltaSpacing.get();
261  }
263  librevenge::RVNGUnit deltaLetterSpacingUnit() const
264  {
265  return m_deltaSpacingUnit.get();
266  }
268  void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
269  {
270  m_deltaSpacing=d;
271  m_deltaSpacingUnit=unit;
272  }
274  float widthStreching() const
275  {
276  return m_widthStreching.get();
277  }
279  void setWidthStreching(float scale=1.0)
280  {
281  m_widthStreching = scale;
282  }
284  Script const &script() const
285  {
286  return m_scriptPosition.get();
287  }
288 
290  void set(Script const &newscript)
291  {
292  m_scriptPosition = newscript;
293  }
294 
296  uint32_t flags() const
297  {
298  return m_flags.get();
299  }
301  void setFlags(uint32_t fl)
302  {
303  m_flags = fl;
304  }
305 
307  bool hasColor() const
308  {
309  return m_color.isSet() && !m_color.get().isBlack();
310  }
312  void getColor(MWAWColor &c) const
313  {
314  c = m_color.get();
315  }
317  void setColor(MWAWColor color)
318  {
319  m_color = color;
320  }
321 
324  {
325  c = m_backgroundColor.get();
326  }
329  {
330  m_backgroundColor = color;
331  }
333  void resetColor()
334  {
337  }
338 
340  bool hasDecorationLines() const
341  {
342  return (m_overline.isSet() && m_overline->isSet()) ||
343  (m_strikeoutline.isSet() && m_strikeoutline->isSet()) ||
344  (m_underline.isSet() && m_underline->isSet());
345  }
348  {
349  if (m_overline.isSet()) m_overline=Line(Line::None);
351  if (m_underline.isSet()) m_underline=Line(Line::None);
352  }
354  Line const &getOverline() const
355  {
356  return m_overline.get();
357  }
359  void setOverline(Line const &line)
360  {
361  m_overline = line;
362  }
364  void setOverlineStyle(Line::Style style=Line::None, bool doReset=true)
365  {
366  if (doReset)
367  m_overline = Line(style);
368  else
369  m_overline->m_style = style;
370  }
373  {
374  m_overline->m_type = type;
375  }
377  void setOverlineWordFlag(bool wordFlag=false)
378  {
379  m_overline->m_word = wordFlag;
380  }
382  void setOverlineWidth(float w)
383  {
384  m_overline->m_width = w;
385  }
387  void setOverlineColor(MWAWColor const &color)
388  {
389  m_overline->m_color = color;
390  }
391 
393  Line const &getStrikeOut() const
394  {
395  return m_strikeoutline.get();
396  }
398  void setStrikeOut(Line const &line)
399  {
400  m_strikeoutline = line;
401  }
403  void setStrikeOutStyle(Line::Style style=Line::None, bool doReset=true)
404  {
405  if (doReset)
406  m_strikeoutline = Line(style);
407  else
408  m_strikeoutline->m_style = style;
409  }
412  {
413  m_strikeoutline->m_type = type;
414  }
416  void setStrikeOutWordFlag(bool wordFlag=false)
417  {
418  m_strikeoutline->m_word = wordFlag;
419  }
421  void setStrikeOutWidth(float w)
422  {
423  m_strikeoutline->m_width = w;
424  }
426  void setStrikeOutColor(MWAWColor const &color)
427  {
428  m_strikeoutline->m_color = color;
429  }
430 
432  Line const &getUnderline() const
433  {
434  return m_underline.get();
435  }
437  void setUnderline(Line const &line)
438  {
439  m_underline = line;
440  }
442  void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
443  {
444  if (doReset)
445  m_underline = Line(style);
446  else
447  m_underline->m_style = style;
448  }
451  {
452  m_underline->m_type = type;
453  }
455  void setUnderlineWordFlag(bool wordFlag=false)
456  {
457  m_underline->m_word = wordFlag;
458  }
460  void setUnderlineWidth(float w)
461  {
462  m_underline->m_width = w;
463  }
465  void setUnderlineColor(MWAWColor const &color)
466  {
467  m_underline->m_color = color;
468  }
469 
471  std::string const &language() const
472  {
473  return m_language.get();
474  }
476  void setLanguage(std::string const &lang)
477  {
478  m_language=lang;
479  }
481  void addTo(librevenge::RVNGPropertyList &propList, shared_ptr<MWAWFontConverter> fontConverter) const;
482 
484  std::string getDebugString(shared_ptr<MWAWFontConverter> &converter) const;
485 
487  bool operator==(MWAWFont const &f) const
488  {
489  return cmp(f) == 0;
490  }
492  bool operator!=(MWAWFont const &f) const
493  {
494  return cmp(f) != 0;
495  }
496 
498  int cmp(MWAWFont const &oth) const
499  {
500  int diff = id() - oth.id();
501  if (diff != 0) return diff;
502  if (size() < oth.size()) return -1;
503  if (size() > oth.size()) return -1;
504  if (flags() < oth.flags()) return -1;
505  if (flags() > oth.flags()) return 1;
506  if (m_deltaSpacing.get() < oth.m_deltaSpacing.get()) return -1;
507  if (m_deltaSpacing.get() > oth.m_deltaSpacing.get()) return 1;
508  if (m_deltaSpacingUnit.get() < oth.m_deltaSpacingUnit.get()) return -1;
509  if (m_deltaSpacingUnit.get() > oth.m_deltaSpacingUnit.get()) return 1;
510  if (m_widthStreching.get() < oth.m_widthStreching.get()) return -1;
511  if (m_widthStreching.get() > oth.m_widthStreching.get()) return 1;
512  diff = script().cmp(oth.script());
513  if (diff != 0) return diff;
514  diff = m_overline.get().cmp(oth.m_overline.get());
515  if (diff != 0) return diff;
516  diff = m_strikeoutline.get().cmp(oth.m_strikeoutline.get());
517  if (diff != 0) return diff;
518  diff = m_underline.get().cmp(oth.m_underline.get());
519  if (diff != 0) return diff;
520  if (m_color.get() < oth.m_color.get()) return -1;
521  if (m_color.get() > oth.m_color.get()) return 1;
522  if (m_backgroundColor.get() < oth.m_backgroundColor.get()) return -1;
523  if (m_backgroundColor.get() > oth.m_backgroundColor.get()) return 1;
524  if (m_language.get() < oth.m_language.get()) return -1;
525  if (m_language.get() > oth.m_language.get()) return 1;
526  return diff;
527  }
528 
529 protected:
543 public:
545  std::string m_extra;
546 };
547 
548 
549 #endif
550 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
Definition: MWAWFont.hxx:49
void setStrikeOutColor(MWAWColor const &color)
sets the strikeoutline color
Definition: MWAWFont.hxx:426
MWAWVariable< MWAWColor > m_color
font color
Definition: MWAWFont.hxx:540
void setFont(int newId)
sets the font id and resets size to the previous size for this font
Definition: MWAWFont.hxx:229
Script const & script() const
returns the script position
Definition: MWAWFont.hxx:284
void setUnderlineType(Line::Type type=Line::Single)
sets the underline type
Definition: MWAWFont.hxx:450
Definition: MWAWFont.hxx:49
Type
the line style
Definition: MWAWFont.hxx:51
MWAWVariable< MWAWColor > m_color
the color ( if not set, we use the font color )
Definition: MWAWFont.hxx:95
Definition: MWAWFont.hxx:182
void resetColor()
resets the font color to black and the background color to white
Definition: MWAWFont.hxx:333
int cmp(Script const &oth) const
small comparison function
Definition: MWAWFont.hxx:165
Definition: MWAWFont.hxx:184
bool hasDecorationLines() const
return true if the font has decorations line (overline, strikeout, underline)
Definition: MWAWFont.hxx:340
Definition: MWAWFont.hxx:51
Definition: MWAWFont.hxx:49
Definition: MWAWDocument.hxx:56
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:231
void setStrikeOutStyle(Line::Style style=Line::None, bool doReset=true)
sets the strikeoutline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:403
void setOverlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the overline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:364
bool operator<=(Script const &oth) const
operator<=
Definition: MWAWFont.hxx:150
MWAWVariable< float > m_widthStreching
the width streching in percent
Definition: MWAWFont.hxx:534
bool hasColor() const
returns true if the font color is not black
Definition: MWAWFont.hxx:307
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:268
MWAWVariable< Line > m_overline
overline attributes
Definition: MWAWFont.hxx:537
std::string m_extra
extra data
Definition: MWAWFont.hxx:545
Type m_type
the type
Definition: MWAWFont.hxx:91
float deltaLetterSpacing() const
returns the condensed(negative)/extended(positive) width
Definition: MWAWFont.hxx:258
FontBits
the different font bit
Definition: MWAWFont.hxx:182
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:578
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:226
int id() const
returns the font id
Definition: MWAWFont.hxx:236
void insert(MWAWVariable const &orig)
update the current value if orig is set
Definition: libmwaw_internal.hxx:548
void setWidthStreching(float scale=1.0)
sets the text width streching
Definition: MWAWFont.hxx:279
Definition: MWAWFont.hxx:183
Definition: MWAWFont.hxx:182
Definition: MWAWFont.hxx:49
Definition: MWAWFont.hxx:184
void resetDecorationLines()
reset the decoration
Definition: MWAWFont.hxx:347
void setUnderlineColor(MWAWColor const &color)
sets the underline color
Definition: MWAWFont.hxx:465
bool isSet() const
return true if the line is not empty
Definition: MWAWFont.hxx:56
friend std::ostream & operator<<(std::ostream &o, Line const &line)
operator<<
Definition: MWAWFont.cxx:48
float widthStreching() const
returns the text width streching
Definition: MWAWFont.hxx:274
static Script super()
return a yposition which correspond to a basic superscript
Definition: MWAWFont.hxx:122
Definition: MWAWFont.hxx:51
Definition: MWAWFont.hxx:182
Definition: MWAWFont.hxx:189
the class to store a color
Definition: libmwaw_internal.hxx:182
Definition: MWAWFont.hxx:188
Definition: MWAWFont.hxx:186
Style m_style
the style
Definition: MWAWFont.hxx:89
static Script sub()
return a yposition which correspond to a basic subscript
Definition: MWAWFont.hxx:112
Definition: MWAWFont.hxx:183
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:317
bool isSet() const
return true if the position is not default
Definition: MWAWFont.hxx:107
bool operator>=(Script const &oth) const
operator>=
Definition: MWAWFont.hxx:160
Definition: MWAWFont.hxx:182
bool operator==(Line const &oth) const
operator==
Definition: MWAWFont.hxx:65
Style
the line style
Definition: MWAWFont.hxx:49
Definition: MWAWFont.hxx:51
void setStrikeOutType(Line::Type type=Line::Single)
sets the strikeoutline type
Definition: MWAWFont.hxx:411
Class to store font.
Definition: MWAWFont.hxx:43
void getColor(MWAWColor &c) const
returns the font color
Definition: MWAWFont.hxx:312
void setUnderline(Line const &line)
sets the underline
Definition: MWAWFont.hxx:437
void setSize(float sz)
sets the font size
Definition: MWAWFont.hxx:252
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:127
MWAWVariable< std::string > m_language
the language if set
Definition: MWAWFont.hxx:542
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:241
bool operator==(Script const &oth) const
operator==
Definition: MWAWFont.hxx:135
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:117
void setOverline(Line const &line)
sets the overline
Definition: MWAWFont.hxx:359
MWAWFont(int newId=-1, float sz=12, uint32_t f=0)
constructor
Definition: MWAWFont.hxx:196
MWAWVariable< float > m_deltaSpacing
expand(> 0), condensed(< 0) depl
Definition: MWAWFont.hxx:532
Line const & getOverline() const
returns the overline
Definition: MWAWFont.hxx:354
int cmp(MWAWFont const &oth) const
a comparison function
Definition: MWAWFont.hxx:498
MWAWVariable< int > m_id
font identificator
Definition: MWAWFont.hxx:530
MWAWVariable< Line > m_strikeoutline
overline attributes
Definition: MWAWFont.hxx:538
MWAWVariable< Line > m_underline
underline attributes
Definition: MWAWFont.hxx:539
Definition: MWAWFont.hxx:187
bool operator==(MWAWFont const &f) const
operator==
Definition: MWAWFont.hxx:487
void setUnderlineWidth(float w)
sets the underline width
Definition: MWAWFont.hxx:460
Line(Style style=None, Type type=Single, bool wordFlag=false, float w=1.0)
constructor
Definition: MWAWFont.hxx:53
float m_delta
the ydelta
Definition: MWAWFont.hxx:174
MWAWVariable< MWAWColor > m_backgroundColor
font background color
Definition: MWAWFont.hxx:541
bool operator!=(Line const &oth) const
operator!=
Definition: MWAWFont.hxx:70
int m_scale
the font scaling ( in percent )
Definition: MWAWFont.hxx:178
float m_width
the width in point
Definition: MWAWFont.hxx:93
void setOverlineWidth(float w)
sets the overline width
Definition: MWAWFont.hxx:382
std::string const & language() const
returns the language
Definition: MWAWFont.hxx:471
bool operator!=(MWAWFont const &f) const
operator!=
Definition: MWAWFont.hxx:492
uint32_t flags() const
returns the font flags
Definition: MWAWFont.hxx:296
MWAWVariable< Script > m_scriptPosition
the sub/super script definition
Definition: MWAWFont.hxx:535
bool operator!=(Script const &oth) const
operator!=
Definition: MWAWFont.hxx:140
MWAWVariable< float > m_size
font size
Definition: MWAWFont.hxx:531
MWAWVariable< librevenge::RVNGUnit > m_deltaSpacingUnit
the delta spacing unit
Definition: MWAWFont.hxx:533
Definition: MWAWFont.hxx:182
void setOverlineType(Line::Type type=Line::Single)
sets the overline type
Definition: MWAWFont.hxx:372
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:180
void setOverlineColor(MWAWColor const &color)
sets the overline color
Definition: MWAWFont.hxx:387
int cmp(Line const &oth) const
small comparison function
Definition: MWAWFont.hxx:75
bool m_word
word or not word line
Definition: MWAWFont.hxx:97
void setUnderlineWordFlag(bool wordFlag=false)
sets the underline word flag
Definition: MWAWFont.hxx:455
void setStrikeOutWidth(float w)
sets the strikeoutline width
Definition: MWAWFont.hxx:421
a small struct to define a line in MWAWFont
Definition: MWAWFont.hxx:47
Script(float delta=0, librevenge::RVNGUnit deltaUnit=librevenge::RVNG_PERCENT, int scale=100)
constructor
Definition: MWAWFont.hxx:102
void setOverlineWordFlag(bool wordFlag=false)
sets the overline word flag
Definition: MWAWFont.hxx:377
Definition: MWAWFont.hxx:49
bool operator<(Script const &oth) const
operator<
Definition: MWAWFont.hxx:145
void getBackgroundColor(MWAWColor &c) const
returns the font background color
Definition: MWAWFont.hxx:323
Line const & getUnderline() const
returns the underline
Definition: MWAWFont.hxx:432
bool operator>(Script const &oth) const
operator>
Definition: MWAWFont.hxx:155
void setBackgroundColor(MWAWColor color)
sets the font background color
Definition: MWAWFont.hxx:328
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:265
librevenge::RVNGUnit m_deltaUnit
the ydelta unit ( point or percent )
Definition: MWAWFont.hxx:176
void setStrikeOutWordFlag(bool wordFlag=false)
sets the strikeoutline word flag
Definition: MWAWFont.hxx:416
float size() const
returns the font size
Definition: MWAWFont.hxx:247
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:301
void setStrikeOut(Line const &line)
sets the strikeoutline
Definition: MWAWFont.hxx:398
Definition: MWAWFont.hxx:49
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:583
MWAWVariable< uint32_t > m_flags
font attributes
Definition: MWAWFont.hxx:536
void insert(MWAWFont const &ft)
inserts the set value in the current font
Definition: MWAWFont.hxx:208
Definition: MWAWFont.hxx:185
bool isSet() const
returns true if the font id is initialized
Definition: MWAWFont.hxx:203
Definition: MWAWFont.hxx:184
void setLanguage(std::string const &lang)
set the language ( in the for en_US, en_GB, en, ...)
Definition: MWAWFont.hxx:476
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:442
void addTo(librevenge::RVNGPropertyList &propList, std::string const &type) const
add a line to the propList knowing the type (line-through, underline, overline )
Definition: MWAWFont.cxx:95
Definition: MWAWFont.hxx:183
Line const & getStrikeOut() const
returns the strikeoutline
Definition: MWAWFont.hxx:393
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:100
librevenge::RVNGUnit deltaLetterSpacingUnit() const
returns the condensed(negative)/extended(positive) unit
Definition: MWAWFont.hxx:263

Generated on Mon Jul 25 2016 16:38:21 for libmwaw by doxygen 1.8.11