lmi
[Top][All Lists]
Advanced

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

Re: [lmi] wx assertion failure: invalid font


From: Vadim Zeitlin
Subject: Re: [lmi] wx assertion failure: invalid font
Date: Tue, 2 Oct 2018 17:26:55 +0200

On Tue, 2 Oct 2018 14:30:37 +0000 Greg Chicares <address@hidden> wrote:

GC> If I experimentally apply the patch below and run a default
GC> group private placement illustration:
GC>   File | New | Illustration
GC>   change "Policy" to "sample2gpp"
GC>   OK
GC>   File | Print to PDF
GC> then I observe this message box a few dozen times:
GC> 
GC>   Assertion '"IsOk"' failed
GC>   (invalid font).
GC>   [file cache_for_lmi/vcs/wxWidgets/src/msw/font.cpp, line 981]

 I can reproduce this, thank you. I'll debug and make a PR fixing this
a.s.a.p.


GC> BTW, the wxHTML <font> size can be either
GC>  - an integer [0,7] with no sign, or
GC>  - an integer with a sign in [-2,+4]
GC> as shown here:
GC>   
https://docs.wxwidgets.org/trunk/overview_html.html#overview_html_supptags_commonvalues
GC> and I've always wondered: are the two forms both absolute, and identical
GC> except for an offset of three units (so 0 = -2, ... 7 = -4); or are the
GC> forms with an explicit sign relative, so that this combination:
GC>   <font size="3"> <font size="-1">
GC> would yield a font size of 2 (= 3 - 1)?

 At least I can answer this question immediately: yes, it's relative, just
as in HTML 3 (and saturating, so 7 + 1 is still 7).

 Regards,
VZ


reply via email to

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