Commit graph

11433 commits

Author SHA1 Message Date
Caolán McNamara
04ce2cea24 callcatcher: drop some Impl methods, regenerate list 2011-09-05 10:54:21 +01:00
Caolán McNamara
09279fe3da remove recently unused methods 2011-09-02 16:53:53 +01:00
Joseph Powers
8c7345ab89 unusedcode.easy: vcl::unotools cleanup 2011-09-01 22:47:32 -07:00
Joseph Powers
581e7d7057 unusedcode.easy: PDFWriter cleanup 2011-09-01 20:51:15 -07:00
Julien Nabet
e506874251 slightly buggy commit 66141a46a4 from 20/11/2008 2011-09-01 21:34:54 +02:00
Julien Nabet
78c1a9f5c4 Some cppcheck cleaning 2011-09-01 21:34:19 +02:00
Radek Doulik
da691c1416 make the overlap smaller 2011-09-01 20:36:11 +02:00
Muthu Subramanian
72051f5a6b fix for linear gradient export to PDF
Signed-off-by: Radek Doulik <rodo@novell.com>
2011-09-01 20:32:29 +02:00
Radek Doulik
dcb9d674c8 make sure we stay in array bounds 2011-09-01 12:03:02 +02:00
Khaled Hosny
3364fefe1e Fixes fdo#38683 calculation of interline spacing on unx platforms
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-09-01 01:41:55 +02:00
Dmitry A Ashkadov
87eb8f8ee8 Polyline improvement for Windows
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-29 13:21:32 +03:00
Caolán McNamara
de82a40f84 callcatcher: drop various unused methods 2011-08-29 09:56:08 +01:00
Caolán McNamara
012072ebd7 valgrind: various unused code 2011-08-29 09:56:05 +01:00
Caolán McNamara
66876a7117 callcatcher: some unused code 2011-08-26 10:23:55 +01:00
Caolán McNamara
cbe995205c avoid crash on shutdown with unprocessed events pending post SalDisplay dtor 2011-08-24 13:53:55 +01:00
Caolán McNamara
2c87725f12 potential WaE 2011-08-24 13:53:55 +01:00
Takeshi Abe
e1a1091d0a catch ignored exceptions by const reference 2011-08-24 11:30:17 +09:00
Rene Engelhard
3e3bd8a18f dlopen() librsvg-2.so.2 instead of .so which would require -dev(el) packages 2011-08-23 22:41:18 +02:00
Caolán McNamara
0d1ff2bfc4 generate list 2011-08-23 10:35:45 +01:00
Tor Lillqvist
648bbe3d64 Remove assertion that does not compile 2011-08-23 01:02:28 +03:00
François Tigeot
7b4825af2c Enable CUPS unconditionally
It doesn't make sense to try to use anything else to print on *nix
systems these days
2011-08-22 21:11:18 +02:00
Caolán McNamara
496ccc46d6 regenerate up to date list 2011-08-22 14:39:45 +01:00
Caolán McNamara
acfe7d39e5 regoptions (etc.) now unused post registration-removal 2011-08-22 09:39:18 +01:00
Caolán McNamara
b3c8e4177d gsl_getSystemTextEncoding->osl_getThreadTextEncoding 2011-08-22 09:39:18 +01:00
Caolán McNamara
53f4837b92 callcatcher: various methods 2011-08-22 09:39:17 +01:00
Caolán McNamara
af6752b88e callcatcher: remove unused methods 2011-08-22 09:39:15 +01:00
Caolán McNamara
b2d7ede987 ditch product registration implementation 2011-08-22 09:39:15 +01:00
Caolán McNamara
846899404e callcatcher: post cairo-text remove unused legacy methods 2011-08-22 09:39:13 +01:00
Norbert Thiebaud
d64bbd6bf8 detect gmake 3.81 and limit to -j1 unless num-cpu is explicitly set 2011-08-19 18:29:07 -05:00
Kohei Yoshida
3c880648fb Fixes link error on Windows. 2011-08-19 15:20:20 -04:00
Caolán McNamara
1ee8a779c2 now cairo is the only way to render text under X 2011-08-19 11:58:59 +01:00
Caolán McNamara
8e64e571f2 Merge FreetypeServerFont and ServerFont now its split out into unx 2011-08-19 10:38:03 +01:00
Caolán McNamara
6e566bc451 and so glyphcache.hxx is revealed to be unx only 2011-08-18 15:48:30 +01:00
Caolán McNamara
670245be8d move unix only stuff to unx 2011-08-18 15:48:30 +01:00
Caolán McNamara
f17a2a0063 remove various casts from ServerFont to FreetypeServeFont
i.e. add the missing api directly to ServerFont
2011-08-18 15:48:30 +01:00
Caolán McNamara
85147fabdb USE_BUILTIN_RASTERIZER is never set 2011-08-18 15:48:29 +01:00
Kohei Yoshida
efc6b840a0 When painting overlapped controls, paint the bottom one first.
Then work our way frontward and paint the top one last.
2011-08-17 22:51:59 -04:00
Caolán McNamara
0c571e233f add and use a matchL 2011-08-17 09:54:14 +01:00
Caolán McNamara
f7cb4edec2 calculate lengths at compile time 2011-08-17 09:54:13 +01:00
Jan Holesovsky
099c219cf6 callcatcher: Remove unused ButtonDialog methods. 2011-08-15 13:11:53 +02:00
Jan Holesovsky
fc3d82ad7a callcatcher: Remove unused Button methods.
mpBitmapEx member is unused after this too, remove.
2011-08-15 13:11:53 +02:00
Jan Holesovsky
5c9dea496b callcatcher: Remove unused ComboBox-related methods. 2011-08-15 13:11:50 +02:00
Jan Holesovsky
3caac78af2 callcatcher: Remove unused ListBox-related methods. 2011-08-15 13:11:50 +02:00
Caolán McNamara
5bc86df0c8 lets keep original encoding 2011-08-15 09:21:47 +01:00
Caolán McNamara
ad282070c5 make these pure virtual to prove all implemented in sole sub-class
Facilitates merging of ServerFont and FreetypeServerFont
2011-08-15 09:20:41 +01:00
Caolán McNamara
935afabf6f virtual method with wrong name, doesn't override what it thinks it does 2011-08-15 09:20:40 +01:00
Caolán McNamara
2e6ee683ad VirtDevServerFont isn't really implemented, remove to allow to simplify 2011-08-15 09:20:40 +01:00
Caolán McNamara
9892df24a5 turn on cairo rendering of vertical text 2011-08-15 09:20:40 +01:00
Jan Holesovsky
7c1a620eca Commit fee11cbc61 changed encoding to UTF8, revert that. 2011-08-15 00:01:57 +02:00
Alex Kempshall
ddafafe5f9 Preserve CollateSingleJobs between calls to print dialog
Preserves the  CollateSingleJobs between calls to print dialog
2011-08-14 12:07:09 -05:00