summaryrefslogtreecommitdiff
path: root/vcl/generic
AgeCommit message (Collapse)Author
2013-08-22Don't re-create Unicode and font functions for every text runKhaled Hosny
Change-Id: I35ba21d753adfc619656d4473b214485dc00faba
2013-08-22fdo#66715: Avoid compatibility decomposition with HarfBuzzKhaled Hosny
Change-Id: Ibbf5720baf7fb507e66515104115d58597258b1d
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-18Use subfolder names from <config_folders.h>Tor Lillqvist
Change all instances of hardcoded "program", "share" etc subfolder names to use those from <config_folders.h> instead. In normal builds, the end result will not change. Change-Id: I91c95cd8e482818be67307e889ae6df887763f53
2013-08-12convert vcl/inc/outfont.hxx from String to OUStringNoel Grandin
Change-Id: I6b9b5f0cd51412ad14f1a07f2ad3a03bd17bb5d3
2013-08-12convert vcl/inc/fontcache.hxx from String to OUStringNoel Grandin
Change-Id: If3ad694b80209f401bc73461d219006058bd11e1
2013-08-12convert vcl/ppdparser.hxx from String to OUStringNoel Grandin
Change-Id: I8a95a98e5cc92e5bedb4813411afc86cc438fdad
2013-07-30fdo#66715: fontconfig: try harder to ignore duplicate fontsMichael Stahl
The thin space not being displayed correctly is caused by using the wrong font, namely /usr/share/fonts/liberation/LiberationSerif-Regular.ttf, which (on Fedora 18) is version 1 and does not contain u2006 etc. glyphs, whereas the LiberationSerif-Regular.ttf bundled with LO is version 2 and does contain these. There is already isPreviouslyDuplicateOrObsoleted() function to ignore older fonts but it does not work for this case because: 1) Only the previous element was looked at, but there may be several fonts with different weight/slant that need to be checked. 2) The LiberationSerif-Regular.ttf differ in the "lang" entry. Change-Id: I2f9e8d50a1f8155b65f8f07c9259dd988c32992a
2013-07-30vcl: fix obviously wrong mapping of WIDTH_ULTRA_EXPANDEDMichael Stahl
Change-Id: I2f23f51e7f04df6fcbc1e2d6661949b830cc248e
2013-07-12Fix headless mode glyph cache memory handlingStephan Bergmann
...the original code was riddled with errors. It leaked memory, which if it didn't it would have deleted multiple times. Change-Id: Ic70b425fac02ef894e35b3dc15039d217f8870f5
2013-07-11Related: fdo#66524 don't invalidate font cache every timeCaolán McNamara
The afm dirs are misdetected as having had something in it in the past and having nothing in it now. AFAICS it seems that this particular code has always been like this, so keeping this fix separate for master only. Change-Id: I8960d0b0d22ee24d5691eecdce262011dc141ea6
2013-07-11Resolves: fdo#66524 string conversion gone wrongCaolán McNamara
Change-Id: Ie885514cdfaecc14ac57bb53a2da7c51274d54b0
2013-07-08-Werror,-Wdeprecated-register (Clang trunk towards 3.4)Stephan Bergmann
...in files generated by gperf; an alternative could be to use -isystem instead of -I in gb_Library_use_custom_headers. Change-Id: I316684ab5342977655a5642903b13e127adaf95c
2013-07-04MinorKhaled Hosny
Change-Id: I6a9f34e6da1344e718ef5c8dc136fac7244b0f47
2013-06-30Fix memory leak in ServerFont::GetGlyphOutline.Mark Wielaard
Always call FT_Done_Glyph before returning. Change-Id: I861bcc66b065d9cfb909b3ea561af97caccc4593 Reviewed-on: https://gerrit.libreoffice.org/4635 Reviewed-by: Khaled Hosny <khaledhosny@eglug.org> Tested-by: Khaled Hosny <khaledhosny@eglug.org>
2013-06-27Always embed 14 standard Postscript fonts in PDFKhaled Hosny
Ealier version of PDF standard allowed for not embedding the so called standard PostScript fonts in the PDF files and all PDF readers had to include them or a "suitable substitute". This behaviour had many issues and is deprecated for 10 years now. The current version of PDF spec says: Beginning with PDF 1.5, the special treatment given to the standard 14 fonts is deprecated. Conforming writers should represent all fonts using a complete font descriptor. For backwards capability, conforming readers shall still provide the special treatment identified for the standard 14 fonts. This commits removes support for not embedding these fonts, and the, now redundant, option to embed them. This has the side effect of elimanating the cause of fdo#66108 and fdo#41547. Change-Id: I4f1fc4137a2de7baeef9e504f2e4f84fbec0a491 Reviewed-on: https://gerrit.libreoffice.org/4495 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-06-24Resolves: fdo#66042 get the bounds of the current graphemeCaolán McNamara
Change-Id: I5b1808d74f0a1dd0d8b6ea22136e574c0a6e8e2a
2013-06-24fdo#43460 shell,vcl,xmlreader: use isEmpty()Jelle van der Waa
Change-Id: Ie3d16da6c246b79c4c304b21476f84b2788f0d6e Reviewed-on: https://gerrit.libreoffice.org/4444 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-20-Werror,-Wdeprecated-registerStephan Bergmann
Change-Id: I8edac5a93f9471c6f245bd484e845985c11027dd
2013-06-20Fix calculation of internal leadingKhaled Hosny
Stupid me, I totally messed this up! God only knows how many non-bugs people had to fix because of this typo. Has the side effect of fixing fdo#64972 (among many others of course, but this is the only one still open). Change-Id: I9d8fdb6d37d4af9b0ac973902e469e0bd3a2408a
2013-06-18sal_Bool to boolTakeshi Abe
Change-Id: Id1c64ab4be262713204cfeeb6333ec7d33fffcfb
2013-06-16Bye Bye ICU Layout EngineKhaled Hosny
Change-Id: I0f887ba378f9dac45a3736e4d1789585651148d1
2013-06-16fdo#43460 use isEmpty()Jelle van der Waa
Change-Id: Ie33025fbd10f47efd6b97304b76b21166d4ee70e Reviewed-on: https://gerrit.libreoffice.org/4307 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-06-14Resolves: #i121534# Reintegrating changes for rotated bitmap supportArmin Le Grand
(cherry picked from commit b2cc0de3fc9adee90787ca760e86869f9255b380) Conflicts: canvas/source/vcl/spritecanvashelper.cxx drawinglayer/Library_drawinglayer.mk drawinglayer/source/processor2d/vclhelperbitmaprender.cxx drawinglayer/source/processor2d/vclhelperbitmaprender.hxx drawinglayer/source/processor2d/vclhelperbitmaptransform.cxx drawinglayer/source/processor2d/vclhelperbitmaptransform.hxx drawinglayer/source/processor2d/vclprocessor2d.cxx officecfg/registry/schema/org/openoffice/Office/Draw.xcs svx/source/svdraw/svdograf.cxx vcl/aqua/source/gdi/salgdi.cxx vcl/inc/aqua/salgdi.h vcl/inc/os2/salgdi.h vcl/inc/salgdi.hxx vcl/inc/unx/pspgraphics.h vcl/inc/vcl/bitmapex.hxx vcl/inc/vcl/outdev.hxx vcl/inc/vcl/salbtype.hxx vcl/os2/source/gdi/salgdi2.cxx vcl/source/gdi/bitmapex.cxx vcl/source/gdi/outdev2.cxx vcl/source/gdi/salgdilayout.cxx vcl/source/gdi/salmisc.cxx vcl/unx/generic/gdi/pspgraphics.cxx vcl/unx/generic/gdi/salgdi2.cxx vcl/unx/headless/svpgdi.cxx vcl/unx/headless/svpgdi.hxx vcl/unx/headless/svppspgraphics.cxx vcl/unx/headless/svppspgraphics.hxx vcl/win/source/gdi/salbmp.cxx vcl/win/source/gdi/salgdi.cxx vcl/win/source/gdi/salgdi3.cxx vcl/win/source/gdi/salgdi_gdiplus.cxx vcl/win/source/gdi/winlayout.cxx Change-Id: I871d1d107b019758f3913e5eb63bc9bc0ba403fd Do not name unused arguments to prevent compiler warnings. (cherry picked from commit f3118889a0cd941f193e9b6557c0792015d77a34) Change-Id: I482d1f96d695c7bf9912ec464bb39e7fdd14adef Related: #i121534# fix graphite-enabled windows build (cherry picked from commit c90a6ca92b1239d01a2892e15488e4a183a88b1a) Conflicts: vcl/win/source/gdi/winlayout.cxx Change-Id: I95fd41ad6f7187f34ba9474674a471fb4fc65314
2013-06-13cppcheck: fix several Prefer prefix ++/-- operatorsJulien Nabet
Change-Id: Ie8ce0ebb9ec979575657a89ebbfe4d01142b04e5
2013-06-13Introduce O[U]String::toUInt32Stephan Bergmann
...which has become necessary since bd60d41176da540b01d7583cfe00637431967f39 "Handle oveflow in O(U)String::toInt() functions" reduces values in the range (SAL_MAX_INT32 .. SAL_MAX_UINT32] to zero, but some calls of toInt32(16) relied on getting a correct (unsigned) value for the whole input range ["0" .. "FFFFFFFF"] (see libreoffice-4-1 commit 9bf6c83367cedb7be81bf67f30d2147d26c7a8c3 "Revert overflow checks in O[U]String::toInt{32,64} again"). Audited all uses of toInt32/64 with non-decimal radix. (There is still a TODO comment in oox/source/helper/attributelist.cxx, and stoc/source/typeconv/convert.cxx will still need some love and test code.) Change-Id: Iadaca1c0e41dab553687d0ce41c20c10cd657a95
2013-06-12Resolves: #i121237# Rework/Cleanup of Region code...Armin Le Grand
due to missing complete support for B2DPolygon class (cherry picked from commit cab10eeb7878edf224a004fd7640bd4adf8d3c51) Conflicts: cppcanvas/source/mtfrenderer/implrenderer.cxx svx/source/sdr/overlay/overlaymanagerbuffered.cxx svx/source/svdraw/svdpntv.cxx vcl/aqua/source/gdi/salgdi.cxx vcl/inc/region.h vcl/inc/unx/gtk/gtkgdi.hxx vcl/inc/vcl/regband.hxx vcl/inc/vcl/region.hxx vcl/os2/source/gdi/salgdi.cxx vcl/source/gdi/bmpacc3.cxx vcl/source/gdi/outdev2.cxx vcl/source/gdi/outmap.cxx vcl/source/gdi/regband.cxx vcl/source/gdi/region.cxx vcl/source/window/window.cxx vcl/unx/generic/gdi/pspgraphics.cxx vcl/unx/headless/svpgdi.cxx vcl/unx/headless/svppspgraphics.cxx vcl/win/source/gdi/salgdi.cxx Change-Id: Iee9a66ff431c3cecb7603e445147b67715de0f7d Remove unused variable to prevent compiler warning (cherry picked from commit 0ac65ccf079e3e22ac23cbe7ae546504c863c31f) Change-Id: Icbcaa9d576a7e560d96debc7360bdbe9090b3fd3 Wrong comparison with bool corrected (cherry picked from commit 612cefdcf6176b6bb847ce899d89af40ef313a90) Change-Id: I1cf5de6734b588f78d8e870ba7b7860634b461ce
2013-06-07dump more info when encountering an odd language for a scriptCaolán McNamara
Change-Id: Icd8eaae44f81c7c6eb8a73a4e567a24b46f97870
2013-06-06fix WM_CLASSLuboš Luňák
VCLSalFrame is definitely not the name of any instance of LibreOffice. Change-Id: Iba227061c0c0541290c90876c94d1016aa1e783e
2013-06-05Related: rhbz#968892 discard impossible languages for oriya script fallbackCaolán McNamara
Change-Id: I2fa1a127fbd2f905a89f0c30898ad56099fa8df1
2013-06-04Related: rhbz#968892 discard impossible languages for glyph fallbackCaolán McNamara
Change-Id: I14f1bab09eb0be9c2c896a1dde45913b99aab6df
2013-06-04Resolves: rhbz#968892 force render full grapheme with fallback fontCaolán McNamara
Change-Id: I5bb98c61d047e69d74666261b2c489d80f344502
2013-05-30Make use of IsStarSymbol()Thomas Arnhold
Change-Id: I7a2e3a6f11bbaaaff50e8163e4ce3e2583b1d03c Reviewed-on: https://gerrit.libreoffice.org/4077 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-05-27be case-insensitive for open/starsymbol comparisonThomas Arnhold
Change-Id: I7a342c809a723f5f9c03271c6145d9c367cea6de Reviewed-on: https://gerrit.libreoffice.org/4015 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-05-25Fix fdo#64972 - strikethrough displays too highKhaled Hosny
I was calculating the leading before setting the ascent and descent, oops. Change-Id: Ic58ecb1a65cb33715ea06f5e3214c4acbcff1e40
2013-05-25A hack to fix mark placement in old fontsKhaled Hosny
We need a way to recognize non spacing marks in fonts lacking GDEF table (like old Arabic fonts), so I just check for zero advance width and hope nothing elsewhere will break... Change-Id: I6fa848e97ba24d71fc9a381ae439e0fb98e50419
2013-05-23Fix left to right full justificationKhaled Hosny
I was overloading ApplyDXArray() with a HarfBuzz specific implementation because the GenericSalLayout one was screwing right to left kerning, but it seems to have broken left to right full justifications. Since mnXOffset was introduced a bit earlier to fix a similar issue, it can now be used here as well to minimize the possible side effects. Seems to work fine for both left to right and right to left text now, but at least one of my Arabic tests is regressing, so might need some tweaking. Change-Id: I1239b0ec77a4978f981a480400a6d01cda18af79
2013-05-22Revert "fdo#62846 incorrect glyph to Unicode mappings in PDFs"Tor Lillqvist
Breaks the build for Windows: vcl/win/source/gdi/winlayout.cxx(1897) : error C2065: 'nCharPos' : undeclared identifier This reverts commit 0b70e4ea4fcf0adccdfdf4886e5cc45d46479692.
2013-05-22fdo#62846 incorrect glyph to Unicode mappings in PDFsJonathan Schultz
Change-Id: Idebc7f69f95d8f72626373475d8611ea68f1483a
2013-05-21absoletely guarantee there is no mem leakCaolán McNamara
Change-Id: If6960dea479bb8970cb94aa05a3c9d44bf60cfc5
2013-05-20Fix memory leak in mapToFontConfigLangTag.Mark Wielaard
FcGetLangs() will return a new FCStrSet that needs to be freed after usage. Change-Id: Ie7fe0dd160fa59077d6a90878e70d0e034680812 Reviewed-on: https://gerrit.libreoffice.org/3967 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-19fix OUString conversionThomas Arnhold
Both were CompareIgnoreCaseToAscii( "starsymbol", 10) which is startsWithIgnoreCaseAscii. Fixes 7d1f4cdec307bb1e761bb5dd3d8231bba5833e10 Change-Id: I21e2eb8c578b65d5f0e4181ed64af02ec480463e
2013-05-19Changed compareTo to startsWithricardobotto
Change-Id: Ia72e220f29c26bdf789bd3f1102b850aafcf525d Reviewed-on: https://gerrit.libreoffice.org/3956 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-05-16WaE: unused functionsTor Lillqvist
Change-Id: I45ae680a89848f32e045a0d3252fe6624decbde7
2013-05-16Remove code associated with psprint::CompatMetricOverride serviceNoel Grandin
We don't actually have any implementations of this service. This service was introduced by commit 01cf481111436df2cc3f01d1c57cc4348fc037ef Author: Kurt Zenker <kz@openoffice.org> Date: Wed Jun 20 09:07:44 2007 +0000 INTEGRATION: CWS compmetric (1.77.2); FILE MERGED 2007/05/09 16:27:46 pl 1.77.2.2: #146890# algorithm is needed 2007/05/09 12:13:59 pl 1.77.2.1: #146890# backwards compatibility service for metrics Michael Stahl seems to think it was a Sun-internal hack introduced for a specific customer. Change-Id: I1b27778f827504c2adb0e27e8d7c0f0dedcaf940 Reviewed-on: https://gerrit.libreoffice.org/3824 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-05-14SolarMutex does not belong into the URE interfaceStephan Bergmann
...so move it from osl/mutex.hxx to its own comphelper/solarmutex.hxx. It looks like a newbie mistake that 59e7685d8d812ee8773f57475cbe3aa2a0bdfc81 "Create an abstract interface to be used to implement a SolarMutex" put it here in the first place. I do not consider this an incompatible change really, as no external URE client code should have used SolarMutex anyway. (Also included some clean up, like removing unused {Clearable,Resettable}SolarGuard, and spelling out SolarGuard in the few places it is used.) Change-Id: I121ffb5b7cefbc19e88b5405e5a85ffc895be852
2013-05-13Handle fonts without hhea or OS/2 table e.g. Type1Khaled Hosny
Change-Id: Ib7245e9f8b7874087966cb1098e63d1f83acaa6a
2013-05-13TypoKhaled Hosny
Change-Id: I28ea63722f542a79aef904f9be40645baac191e4
2013-05-12Some loggingKhaled Hosny
Change-Id: I4515d4d6760e22ce4d77fbb3cbce93e3ce097b98
2013-05-11Drop code for FreeTyope version we don't supportKhaled Hosny
Change-Id: I404ac35010c243fad65b6d83c10c75665a0568f0