Menu

#35 patch SynEdit for MBCS

open
None
5
2007-08-29
2007-06-10
vanilla610
No

humm normal SynEdit looks better for me although i know u've stop supporting MBCS for SynEdit, not UniSynEdit.
I've encourtered the following problem.

MBCS chars is drawn incorretly when left-scrolling.
Look at attached images.

the patch for this might be very easy.

just draw at least 2 columns for MBCS or wider glyphs

Line 2362 at SynEdit.pas
nC2 := LeftChar +
(rcClip.Right - fGutterWidth - 2 + CharWidth - 1) div CharWidth;
----->
nC2 := LeftChar + 1
(rcClip.Right - fGutterWidth - 2 + CharWidth - 1) div CharWidth;

Discussion

  • vanilla610

    vanilla610 - 2007-06-10
     
  • vanilla610

    vanilla610 - 2007-06-10
     
  • vanilla610

    vanilla610 - 2007-06-10

    Logged In: YES
    user_id=1383550
    Originator: YES

    and i've uploaded the resulted image.
    this looks good.

    i hope u patch this for synedit branch.

    thx
    File Added: SynEditLeftScrollingResult.jpg

     
  • Flávio Etrusco

    Flávio Etrusco - 2007-08-29
    • assigned_to: nobody --> etrusco
     

Log in to post a comment.