Re: issue with line break option PANGO_WRAP_CHAR



Title: Samsung Enterprise Portal mySingle

Hello,

 

My code and image do not seem to be accessible somehow.

Please visit https://sites.google.com/site/fontengine/issue_hyphen to see my code and the output image.

 

Thanks and regards,

Parth

 

------- Original Message -------

Sender : Parth Kanungo<parth k samsung com> Software Engineer (2)/SRI-Delhi-Common Talent Group/Samsung Electronics

Date : Sep 06, 2013 17:52 (GMT+05:30)

Title : issue with line break option PANGO_WRAP_CHAR

 

Hello,

 

I am facing an issue with a line break option - PANGO_WRAP_CHAR.

 

You can see the output (image.bmp)

for my code (main.cpp)

 

It is clear that "i" can be rendered on the first line after "Th".

However, it is coming on the second line. This is wrong.

 

Is this a known bug?

 

I further debugged and found that

1. can_break_at() gives false for space character.

2. break_width contains the width of "Th" only, when it should contain the width of "The"

 

But, I am not sure how to fix this.

Moreover, this problem aggravates if we introduce multiple spaces between 2 words.

 

Any pointers in this direction would be helpful.

 

Thanks and regards,
Parth Kanungo

 



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