summaryrefslogtreecommitdiff
path: root/vcl/generic
AgeCommit message (Collapse)AuthorFilesLines
2012-08-16Resolves: fdo#53258 Aquabase-spanish-support busts ttf reader againCaolán McNamara1-3/+8
Once as #i107552# and now again as fdo#53258. This is one sick puppy of a font. It makes fontforge and fontconfig jump through hoops as well. Change-Id: Ifee780bb1463dca4e8b045828a07369e6c3863fc Signed-off-by: Tomas Chvatal <tchvatal@suse.cz>
2012-06-25Resolves: fdo#47636 cache fontconfig font substitutionsCaolán McNamara1-6/+53
But this time cache on *all* properties, not just the name, which doesn't cut it, given the things fontconfig can do, e.g. fdo#41556 (cherry picked from commit 8c023fd645c8b83637ffcde4055886b2e4f94393) Conflicts: vcl/inc/outfont.hxx vcl/source/gdi/outdev3.cxx Change-Id: Idfc1dbac67b6912e4985570a0b7c6ccdf47fa4a5
2012-06-04Change return PrintFontManager::countFontconfigFontsJulien Nabet1-3/+5
PrintFontManager::countFontconfigFonts returns an int but it's never used so let's drop the int returned Change-Id: Iab00916aec36b899a04555743d698a3fc1d45085
2012-06-02targeted string re-workNorbert Thiebaud1-7/+5
Change-Id: Ic1fb9f4ec0f37d4efcf43c58b903388478d52173
2012-06-02targeted string re-workNorbert Thiebaud1-5/+5
Change-Id: I0ca912c8b7e485f5ec78422150aedc72ca6df32f
2012-05-31make CheckCharacterBounds tests happy without forcing empty glyphs 1 unit wideCaolán McNamara1-5/+0
related, i#87757 and 8bafe38c569afa2e1055eb647cb7ff161ddd1230 which itself is related to ce14342c4292628a641a72d4f63d9c048e030c6a, These character bounds are backed by what's the glyph bounding box for the ink used for the glyph. Whitespace has no ink so its an empty Rectangle. Which brings the awesome RECT_EMPTY into play. It might be a bit dubious in the first place to back getCharacterBounds with the glyph bounding box in the first place, rather than maybe the advance width or some such. But lets assume that decision was intentional. So, the qa test should accept that a glyph might be of 0 width anyway. Then, tweak rectangle merging so that we can preserve the correct top-left position of an empty glyph So, we can determine the correct character index given the top-left position of an empty glyph Change-Id: I5e18460ff7cd90cd27d5eede2aa0a5494c36a5d3
2012-05-30i#87757: do not create empty Rectangle bounding box for glyphs:Michael Stahl1-0/+5
Enforce a minimum width and height of 1 in GlyphMetric::SetSize(), preventing X11SalGraphics::GetGlyphBoundRect() from returning a Rectangle that has one side set as RECT_EMPTY. This problem has surfaced due to the change of the status bar in ce14342c4292628a641a72d4f63d9c048e030c6a, causing the AccessibleStatusBarItem to fail in getCharacterBounds() because the text of the control, "Words: 0", now contains a space, for which an empty Rectangle bounding box is created, which results in a wrong return value from getCharacterBounds(): LOG> Character bounds outside component LOG> Character rect: 43, -566, 0, 0 LOG> Component rect: 91, 2, 71, 18 It turns out that the following test was disabled due to this problem, so re-enable it now: toolkit.AccessibleFixedText::com::sun::star::accessibility::XAccessibleText
2012-05-16reduce static_initialization_and_destruction chainCaolán McNamara1-6/+2
Change-Id: I962aeac0c7feeabb7963016d5afcfeca5a48ccfe
2012-04-25Removed unused methods from psp::PrinterGfxChr. Rossmanith3-52/+0
2012-04-14Some vcl cleaningJulien Nabet2-14/+0
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi1-1/+1
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi1-25/+25
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-03-31vcl: use CustomTarget makefilesMatúš Kukan1-32/+0
2012-03-26merge getVerticalDeltaAngle and GetVerticalFlagsCaolán McNamara1-25/+6
2012-03-14Remove SO52 strict compatibility stuffChristina Rossmanith4-168/+2
2012-03-12replace usage of OUString::replace*AsciiL() with string literal overloadsLuboš Luňák1-4/+2
2012-03-12OString ctor for string literals without RTL_CONSTASCII stuffLuboš Luňák1-2/+2
2012-03-04help GlyphItems vector to be sized correctly up-frontNorbert Thiebaud2-0/+7
2012-02-28Reduced duplicate code (simian) / vcl/generic/print/glyphset.cxxChristina Rossmanith2-64/+15
2012-02-21Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))Takeshi Abe2-4/+4
to equalsIgnoreAsciiCaseAscii("...")
2012-02-20Resoves fdo#42901 duplicated .pfb without duplicated .afm drops fontCaolán McNamara1-1/+20
If we have a duplicate font entry the duplicate is dropped, but if the first font was invalid, e.g. .pfb without .afm this results in dropping *both* fonts, the valid and invalid one
2012-02-19ByteString->rtl::OStringCaolán McNamara2-59/+55
2012-02-19Get rid of size() == 0Elton Chung1-5/+5
2012-02-18vcl: nFallbacklevel has no effectThomas Arnhold1-4/+1
2012-02-18Fix typos in commentsElton Chung1-1/+1
2012-02-15Various string function clean upStephan Bergmann2-9/+11
Added: * rtl::OString::matchL * rtl::OString::endsWith * rtl::OString::endsWithL * rtl::OString::indexOfL * rtl::OString::replaceFirst * rtl::OString::replaceAll * rtl::OString::getToken * rtl::OUString::endsWith * rtl::OUString::replaceFirst * rtl::OUString::replaceFirstAsciiL * rtl::OUString::replaceFirstAsciiLAsciiL * rtl::OUString::replaceAll * rtl::OUString::replaceAllAsciiL * rtl::OUString::replaceAllAsciiLAsciiL * rtl::OUString::getToken plus underlying C functions where necessary Deprecated: * comphelper::string::remove * comphelper::string::getToken Removed: * comphelper::string::searchAndReplaceAsciiL * comphelper::string::searchAndReplaceAllAsciiWithAscii * comphelper::string::searchAndReplaceAsciiI * comphelper::string::replace * comphelper::string::matchL * comphelper::string::matchIgnoreAsciiCaseL * comphelper::string::indexOfL Also fixed some apparent misuses of RTL_CONSTASCII_USTRINGPARAM -> RTL_CONSTASCII_STRINGPARAM.
2012-01-31Fix for fdo43460 Part LVII getLength() to isEmpty()Olivier Hallot4-6/+6
Part LVII Modules vcl (part 1)
2012-01-21unused methodsThomas Arnhold1-19/+0
2012-01-17remove unused methodsThomas Arnhold1-9/+0
2012-01-16typoCaolán McNamara1-1/+1
2012-01-16Clang -Wunneeded-internal-declaration.Stephan Bergmann1-24/+0
2012-01-16Same expression on both sides of '-'Caolán McNamara1-8/+8
2012-01-16callcatcher: update list, updateDirTimestamp now unusedCaolán McNamara1-14/+0
2012-01-13Replace getLength() with isEmpty() in vcl/generic/fontmanagerChristina Rossmanith4-22/+22
2012-01-13tidy some string typesCaolán McNamara1-6/+7
2012-01-13Replace (Byte)String with rtl::O(U)StringChristina Rossmanith1-15/+15
2012-01-13Drop XLFD support from fontmanagerKhaled Hosny2-502/+4
XLFD support was removed in commit 269f91c (#i110171) except for parsing fonts.dir and fonts.alias. I don't think this makes much sense in fontconfig era, and dropping it simplifies the font manager a bit (I don't even think we use server fonts at all).
2012-01-13callcatcher: update list, getXLFD is now unusedCaolán McNamara1-76/+0
2012-01-12post padmin shrinkage a lot of FontManager can go nowCaolán McNamara3-383/+3
2012-01-11Resolves:fdo#44078 fix unfortunate name alias mixups with DejaVu fontsCaolán McNamara1-4/+15
2012-01-11Resolves: fdo#44492 look up font by FC_FILE+FC_INDEX rather than FC_FAMILYCaolán McNamara3-18/+41
2012-01-11align m_nCollectionEntry with getFontFaceNumber and FC_FACE, bump cache magicCaolán McNamara2-10/+10
2012-01-11further shrinkage of padmin non-fontconfig code-pathsCaolán McNamara1-90/+0
2012-01-11adapt findFontFileID to know about multiple font faces in a font fileCaolán McNamara2-37/+91
2012-01-11addFontFile always add all font faces in that fileCaolán McNamara1-1/+1
2012-01-11align getFontFaceNumber with FC_FACECaolán McNamara2-2/+4
getFontFaceNumber returns the index of the font in the collection, font formats without indexes are now "0" rather than -1. All existing code already converted < 0 to 0 anyway, so simplifys a little.
2012-01-11on generic X11 unix we always use fontconfigCaolán McNamara3-23/+13
2012-01-10Rename weird "NetPath" term to the more descriptive "InstallationRootPath"Tor Lillqvist1-12/+12
2012-01-10can drop intermediate strings nowCaolán McNamara1-4/+2
2012-01-10Replace (Byte)String with rtl::O(U)StringChristina Rossmanith2-32/+33