[Libreoffice-commits] core.git: Changes to 'private/tbsdy/drawserverfontlayout'

Chris Sherlock chris.sherlock79 at gmail.com
Fri Jan 16 05:33:14 PST 2015


New branch 'private/tbsdy/drawserverfontlayout' available with the following commits:
commit c9b79c754777a3d1817249c6a85c13f54b8e0457
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Fri Jan 16 03:15:38 2015 +1100

    vcl: Add basic textdemo
    
    This can be used to isolate font rendering issues in vcl
    
    Change-Id: Ibe61de6099a5b98226a84f4cc9a23a2e2c0b14f8

commit cea4e360fb5c847456412e30145d31ddb3e3cec7
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Thu Jan 15 18:14:11 2015 +1100

    vcl: make CairoTextRender::DrawServerFontLayout more efficient
    
    CairoTextRender::DrawServerFontLayout current calls on GetNextGlyphs multiple
    times - but instead of asking for a run of glyphs it gets them one by one by
    calling the function each time.
    
    That's not necessary - in fact DrawServerFontLayout wants to get ALL of the
    glyphs from rSalLayout anyway. The reason it calls on the function multiple
    time is because the intended purpose of GetNextGlyphs is to get a single
    line of glyphs as the expectation is what you will do with this is to take
    the position of the first glyph's origin, then work out the width of the
    glyphs. As we need to get all the glyphs, I have introduced GetAllGlyphs(),
    which gets a vector of all the relative positions of each character and each
    glyph ID in another vector.
    
    Change-Id: I557f4973f9e8b26b5db29a1869bd5d9864979e2e



More information about the Libreoffice-commits mailing list