> > It now *appears* that we can set that to NULL if we are not 
> using it,
> > and that might appease all the different compiler versions.
> 
> Yes, I noticed that it wasn't used at all, but I didn't know whether
> it could be set to NULL or not. I looked at my (VS 2008/2010) 
> docs, and
> I didn't find an explicit statement about it, but ... there 
> is one small
> side note in the docs for GetCharacterPlacement() at
> 
> http://msdn.microsoft.com/en-us/library/dd144860%28v=vs.85%29.aspx
> 
> in the paragraph on GCP_REORDER: "If this flag is set for Semitic
> languages and the lpClass array is used, ..."
> 
> Note: "and the lpClass array is used". Does this mean that it can
> be set to NULL?

I do not know, and the docs are (as you notice) a bit vague. I initially
thought we did have to set it (so I did) but in tests since, I have
found that setting it to NULL appears to work fine too.

Though I have not tried any Semitic or Indic languages, at least not in
any detail - just a few glyphs, never a "well formed" word or sentence,
since I do not know the relevant languages.

Anyway, I have pushed a patch into svn with that stuff removed, and for
me (and Manolo) it appears to work.

But we need to test more...


> P.S. When testing I found a strange effect: the first click on the
> "rendering text" selection works as expected (the green and red box
> are almost the same (w=105, h=30, the left red border is one pixel
> left from the green border), but if I change to another display and
> then back, then the red box is about 150 pixels wide. Maybe I did
> something wrong in my test environment, or ... Could you take a
> look at it? Please see attached file test1.diff.

Hmm, it seems to work OK for me - though I didn't try your mod to the
text_extents demo, as I already had a modified version of text_extents I
was using in my testing anyway.

Need to go to a meeting - will try and get back to this later...



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to