[haiku-commits] Re: r35865 - in haiku/trunk: headers/os/interface headers/private/app src/kits/interface src/servers/app src/servers/app/drawing ...

  • From: Stephan Assmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 15 Mar 2010 20:41:53 +0100

Hi,

On 2010-03-15 at 16:37:03 [+0100], Jorge G. Mare <koki@xxxxxxxxxxxxx> wrote:
> Stephan Assmus wrote:
> > On 2010-03-15 at 15:10:56 [+0100], Stefano Ceccherini
> > <stefano.ceccherini@xxxxxxxxx> wrote:
> >   
> >> 2010/3/15 Stefano Ceccherini <stefano.ceccherini@xxxxxxxxx>:
> >>     
> >>> 2010/3/15  <superstippi@xxxxxx>:
> >>>
> >>>       
> >>>> Log:
> >>>>  * Extended the BView drawing API by a DrawString() version that takes
> >>>>  an array
> >>>>   of locations, one for each glyph.
> >>>>  * Added a test for the new functionality.
> >>>>         
> >>> Isn't this pretty much what the DrawString() version which accepts an
> >>> escapement_delta array does ?
> >>>       
> >> Replying to myself: obviously not.
> >>     
> >
> > Yes. To clarify for others perhaps, the escapement delta provides a
> > constant extra offset, separately for whitespace and non-whitespace 
> > glyphs.
> > The new method allows arbitrary positioning. I.e. in case you want 
> > complete
> > control over it, or have to efficiently implement an API which does this
> > itself, as in the case of WebKit. For what WebKit seems to need, the
> > escapement delta stuff would indeed be sufficient, though, but perhaps
> > arbitrary positioning is indeed used and I haven't seen it yet. So far, I
> > only saw it used for justified text, which I assume has a constant
> > whitespace and non-whitespace extra offset.
> >   
> 
> Sorry to jump in, but could this be used to implement
> BFont::IsFullAndHalfFixed() to allow using monospaced fonts that have
> two glyph sets (single- and double-spaced), such as
> Japanese/Chinese/Korean monospaced fonts?

That was already possible before. Someone just needs to do it. This commit 
doesn't change the situation. The best person for the job would of course be 
someone who needs this feature.

Best regards,
-Stephan

Other related posts: