URL:
  <http://gna.org/bugs/?21649>

                 Summary: Consecutive line breaks not rendered as expected
with Pango/Cairo (GUI2, etc.)
                 Project: Battle for Wesnoth
            Submitted by: shadowmaster
            Submitted on: Fri 14 Feb 2014 02:28:57 AM CLST
                Category: Bug
                Severity: 4 - Important
                Priority: 5 - Normal
              Item Group: User Interface
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.11.x
        Operating System: Windows XP - 8

    _______________________________________________________

Details:

On Windows (but not Linux), consecutive line breaks are not rendered as
expected with Pango/Cairo (via the ttext type) as used by GUI2 or story
screens, making it non-trivial to ensure paragraphs of text in the same string
have a minimum separation between them.

I'm attaching screenshots of one of the story screens for the first scenario
of the A Tale of Two Brothers campaign as one of the most evident examples,
but this problem can also be observed with all the mainline campaign
descriptions featured in the Campaigns menu, where the line stating the
campaign difficulty and length is separated from the rest of the description
by two consecutive line breaks to form two distinct paragraphs.

Interestingly enough, there is a (unfortunately _very_ inconvenient) way to
work around this issue by inserting a single whitespace character (ASCII 0x20)
for each line that would otherwise be empty, i.e. between the line breaks.

I consider this bug to be rather important since it severely impacts the
ability of UMC authors to format prose in more text-heavy add-on campaigns in
a form that is rendered consistently across all supported platforms.

I have only experienced this bug on Windows myself (outdated Cairo/Pango
versions? see also: my note about versions on bug #21648).



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 14 Feb 2014 02:28:57 AM CLST  Name:
wesnoth-win32-double-line-breaks.png  Size: 296kB   By: shadowmaster

<http://gna.org/bugs/download.php?file_id=20045>
-------------------------------------------------------
Date: Fri 14 Feb 2014 02:28:57 AM CLST  Name:
wesnoth-win32-double-line-breaks-linux-comparison.png  Size: 323kB   By:
shadowmaster

<http://gna.org/bugs/download.php?file_id=20046>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21649>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to