Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Fix many many problems in xtext.c related to character width. #891

Closed
wants to merge 2 commits into from
Closed

Fix many many problems in xtext.c related to character width. #891

wants to merge 2 commits into from

Conversation

RichardHitt
Copy link
Contributor

Fix many many problems in xtext.c related to pixel width of characters
and inaccuracies on resizing due to bolding and italicizing and font changing.

  • Rework multiline logic to use a GSList, not an array
  • Remove all multibyte booleans; everything is potentially multibyte
    • Except for gtk_xtext_get_word(), which needs special attention
  • Enhance pango work for bold and italics (attr_list -> attr_lists[4])
  • Enhance gtk_xtext_strip_color () to save bold, italics info
  • Involve emphasis information in all pixel-width calculations
  • Rework find_x () to account for emphasis info in widths

off += mbl;
}
if (len < 0)
printf ("%s:%d -- Bad UTF-8 character somewhere in meta=%p\n", __FILE__, __LINE__, meta);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left over from debugging?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants