summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2011-09-02remove recently unused methodsCaolán McNamara
2011-09-01unusedcode.easy: vcl::unotools cleanupJoseph Powers
2011-09-01unusedcode.easy: PDFWriter cleanupJoseph Powers
2011-09-01slightly buggy commit 66141a46a44fa1c96694e98453e28c077ca23f48 from 20/11/2008Julien Nabet
2011-09-01Some cppcheck cleaningJulien Nabet
2011-09-01make the overlap smallerRadek Doulik
2011-09-01fix for linear gradient export to PDFMuthu Subramanian
Signed-off-by: Radek Doulik <rodo@novell.com>
2011-09-01make sure we stay in array boundsRadek Doulik
2011-09-01Fixes fdo#38683 calculation of interline spacing on unx platformsKhaled Hosny
The current calculation of interline spacing is fundamentally flawed, at least on "unx". The implementation of ServerFont::FetchFontMetric() in gcach_ftyp.cxx does the following: * gets ascent/descent from FT_Size_Metrics which is fine * sets internal leading to the value of line gap while this should be the external leading * if the font has an OS/2 table - recalculates the metrics based on WinAscent/WinDescent which is absolutely wrong as these metrics should never be used to control line spacing - external leading get set based on a combination of metrics from HHEA table and WinAscent/WinDescent - for CJK it "adds half of the external leading to the ascent, the other half is added to the descent" because "the line height for Asian fonts is too small", my reaction reading this was "WTF!" The main problem here is that OS/2 Win metrics should never be used for controlling line spacing[1] and Typo metrics should used instead[2]. The Win metrics in the font are set to be higher than the highest/deepest glyph in the font, else Windows will clip portions of the glyphs above those values, for most fonts Win and Typo values can be the same, but for some special fonts that have very big glyphs like Neo Euler[3], XITS Math[4] or Cambria Math the Win values are much bigger resulting in huge line spacing, see attached screen shots. #38683[5] is another example of problems caused by this. The attached patch is an attempt to bring some sanity to the situation: * external leading = height - ascent + descent (line gap) * internal leading = ascent + descent - EM_size * if the font has an OS/2 table typo metrics are used * no need for HHEA stuff as freetype derives its size metrics from it anyway. * removed the bogus CJK stuff * removed check for freetype < 2.0 which we don't support anyway This only done for 'unx' similar work is needed for 'win' and 'aqua', but I'm not familiar with these platforms and can't test on it. [1] http://www.microsoft.com/typography/otspec/os2.htm#wa [2] http://www.microsoft.com/typography/otspec/os2.htm#sta [3] https://github.com/khaledhosny/euler-otf [4] http://en.wikipedia.org/wiki/XITS_font_project [5] https://bugs.freedesktop.org/show_bug.cgi?id=38683 Mail in archive: http://lists.freedesktop.org/archives/libreoffice/2011-August/017287.html Screenshot attachments: http://lists.freedesktop.org/archives/libreoffice/attachments/20110829/7d829a4b/attachment-0002.png http://lists.freedesktop.org/archives/libreoffice/attachments/20110829/7d829a4b/attachment-0003.png
2011-08-29Polyline improvement for WindowsDmitry A Ashkadov
I tried to draw polyline.... But on Windows... the end point is not drawn... the main problem is WinAPI LineTo() function. MSDN says: The LineTo function draws a line from the current position up to, but not including, the specified point. I think WinAPI Polyline() function uses LineTo() to draw a polyline. I see a hack in VCL module in WinSalgraphics::drawLine(): "we must paint the endpoint" But there is no such hack for drawPolyLine() function. A possible solution is same as for drawLine().
2011-08-29callcatcher: drop various unused methodsCaolán McNamara
2011-08-29valgrind: various unused codeCaolán McNamara
2011-08-26callcatcher: some unused codeCaolán McNamara
2011-08-24avoid crash on shutdown with unprocessed events pending post SalDisplay dtorCaolán McNamara
2011-08-24potential WaECaolán McNamara
2011-08-24catch ignored exceptions by const referenceTakeshi Abe
2011-08-23dlopen() librsvg-2.so.2 instead of .so which would require -dev(el) packagesRene Engelhard
2011-08-23generate listCaolán McNamara
2011-08-23Remove assertion that does not compileTor Lillqvist
2011-08-22Enable CUPS unconditionallyFrançois Tigeot
It doesn't make sense to try to use anything else to print on *nix systems these days
2011-08-22regenerate up to date listCaolán McNamara
2011-08-22regoptions (etc.) now unused post registration-removalCaolán McNamara
2011-08-22gsl_getSystemTextEncoding->osl_getThreadTextEncodingCaolán McNamara
2011-08-22callcatcher: various methodsCaolán McNamara
2011-08-22callcatcher: remove unused methodsCaolán McNamara
2011-08-22ditch product registration implementationCaolán McNamara
2011-08-22callcatcher: post cairo-text remove unused legacy methodsCaolán McNamara
2011-08-19detect gmake 3.81 and limit to -j1 unless num-cpu is explicitly setNorbert Thiebaud
2011-08-19Fixes link error on Windows.Kohei Yoshida
2011-08-19now cairo is the only way to render text under XCaolán McNamara
2011-08-19Merge FreetypeServerFont and ServerFont now its split out into unxCaolán McNamara
2011-08-18and so glyphcache.hxx is revealed to be unx onlyCaolán McNamara
2011-08-18move unix only stuff to unxCaolán McNamara
2011-08-18remove various casts from ServerFont to FreetypeServeFontCaolán McNamara
i.e. add the missing api directly to ServerFont
2011-08-18USE_BUILTIN_RASTERIZER is never setCaolán McNamara
2011-08-17When painting overlapped controls, paint the bottom one first.Kohei Yoshida
Then work our way frontward and paint the top one last.
2011-08-17add and use a matchLCaolán McNamara
2011-08-17calculate lengths at compile timeCaolán McNamara
2011-08-15callcatcher: Remove unused ButtonDialog methods.Jan Holesovsky
2011-08-15callcatcher: Remove unused Button methods.Jan Holesovsky
mpBitmapEx member is unused after this too, remove.
2011-08-15callcatcher: Remove unused ComboBox-related methods.Jan Holesovsky
2011-08-15callcatcher: Remove unused ListBox-related methods.Jan Holesovsky
2011-08-15lets keep original encodingCaolán McNamara
2011-08-15make these pure virtual to prove all implemented in sole sub-classCaolán McNamara
Facilitates merging of ServerFont and FreetypeServerFont
2011-08-15virtual method with wrong name, doesn't override what it thinks it doesCaolán McNamara
2011-08-15VirtDevServerFont isn't really implemented, remove to allow to simplifyCaolán McNamara
2011-08-15turn on cairo rendering of vertical textCaolán McNamara
2011-08-15Commit fee11cbc61 changed encoding to UTF8, revert that.Jan Holesovsky
2011-08-14Preserve CollateSingleJobs between calls to print dialogAlex Kempshall
Preserves the CollateSingleJobs between calls to print dialog
2011-08-13Replace removed ByteString API usageNorbert Thiebaud