[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xfree-fonts
Subject:    Re: [Fonts] Complex text layout and mapping screen coordinates
From:       jkoshy () FreeBSD ! ORG (Joseph Koshy)
Date:       2002-02-27 6:56:45
[Download RAW message or body]



>>>>> "jk" == "Joseph Koshy", "ks" == "Keyur Shroff"

jk> o An implementation is not allowed to place glyphs at
jk>   anything other than the /precise/ positions in the request (i.e. no
jk>   kerning).

ks> Will you please give us the pointers of these in the
ks> protocol specification?

The first glyph of the glyph list specified in the PolyText or
ImageText requests has to be drawn with its origin coinciding with the
[x,y] coordinate given in the request.  This is specified in the
definition of these requests.

The origin for the next glyph is defined to be: 

    [x + character-width,y]

where "character-width" is a per-character metric.  This information
is however tucked away in the definition QueryFont protocol request
[approx page 51 of the protocol specification].

There is another constraint on text rendering imposed by the core
protocol.

o PolyText glyph display is defined as a fill operation using the
  current graphics context, with the glyph bits forming a mask.  This
  effectively precludes anti-aliased text.  ImageText rendering is
  also defined in terms of 2 colors, also precluding anti-aliased
  display of text.


Regards,
Koshy
<jkoshy@freebsd.org>
_______________________________________________
Fonts mailing list
Fonts@XFree86.Org
http://XFree86.Org/mailman/listinfo/fonts
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic