Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!acorn!john From: john@acorn.co.uk (John Bowler) Newsgroups: comp.windows.x Subject: A question about ImageText Keywords: ImageText Protocol Message-ID: <1341@acorn.co.uk> Date: 5 Jan 90 15:10:22 GMT Reply-To: jbowler@acorn.co.uk (John Bowler) Organization: Acorn Computers Ltd, Cambridge, UK Lines: 17 The ImageText8 and ImageText16 protocol requests are defined to fill in a background rectangle of width ``overallWidth''; where overallWidth is the sum of the character width metrics. So what happens if this quantity is negative? (Quite likely with a RightToLeft font). The sensible interpretation is to fill in a rectangle of width overall-width with an upper *right* corner at (x, y-fontAscent). This achieves what the application program probably expects with a RightToLeft font (ie that the background of each character gets set, so long as the character origins are at the right hand side of the character). If this interpretation is correct, is the pixel (x,y-fontAscent) filled in? If it is this means that the upper left corner of the rectangle is at (x-overallWidth+1,y-fontAscent) (which therefore disagrees with the protocol specification). John Bowler (jbowler@acorn.co.uk)