summaryrefslogtreecommitdiff
path: root/vcl/win/gdi
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-12-20 23:35:28 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2016-12-21 04:29:31 +0000
commit72002992a3c5213882fa4d60c7cd8fab10f0b009 (patch)
tree8a9e94f9ff074a7934f1f6ffc2d152d2d0b97120 /vcl/win/gdi
parent893698741a78e56d74b87caff24f67742ddd892b (diff)
tdf#104733: Don't ignore OpenType-CFF fons on Windows
This is a folloup for ef4b9032de55e6b1b182e4ead1bbe6e590df296e, turns out TRUTYPE_FONTTYPE does not cover CFF fonts like I thought (the fonts that I was checking were actually TTF fonts). Change-Id: I2d7b34b625aa03134421dc44a24e3c66be25df98 Reviewed-on: https://gerrit.libreoffice.org/32258 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Diffstat (limited to 'vcl/win/gdi')
-rw-r--r--vcl/win/gdi/salfont.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx
index 7c5fd4a21074..6be5acd02637 100644
--- a/vcl/win/gdi/salfont.cxx
+++ b/vcl/win/gdi/salfont.cxx
@@ -1054,8 +1054,13 @@ int CALLBACK SalEnumFontsProcExW( const LOGFONTW* lpelfe,
else
{
// Only SFNT fonts are supported, ignore anything else.
- if (!(nFontType & TRUETYPE_FONTTYPE))
+ if (!(nFontType & TRUETYPE_FONTTYPE) &&
+ !(pMetric->ntmTm.ntmFlags & NTM_PS_OPENTYPE) &&
+ !(pMetric->ntmTm.ntmFlags & NTM_TT_OPENTYPE))
+ {
+ SAL_INFO("vcl.gdi", "Unsupported font ignored: " << OUString(pLogFont->elfLogFont.lfFaceName));
return 1;
+ }
WinFontFace* pData = ImplLogMetricToDevFontDataW( pLogFont, &(pMetric->ntmTm), nFontType );
pData->SetFontId( sal_IntPtr( pInfo->mnFontCount++ ) );
xception specificationsStephan Bergmann ...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> 2016-12-05convert DecodeMechanism to scoped enumNoel Grandin Change-Id: I5c56634b1bca8e37fa73d02d2428645301b6c547 2016-08-26loplugin:refcounting: also cover temporaries being directly stack managedStephan Bergmann Change-Id: Ib0f7c60df1d2fba0d4d9d3fa6faf3bb97867ebc0 2016-07-07loplugin:passstuffbyref also for {css::uno,rtl}::ReferenceStephan Bergmann Change-Id: Idb9dba0a96236b7b4240a1e94693d16e77484a29 2016-07-04Fix some spelling errors in comments and stringsOtto Kekäläinen Change-Id: Iecd6b5e13d6be14651f77d8e37f01117ba15a11e Reviewed-on: https://gerrit.libreoffice.org/26883 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org> 2016-04-20loplugin:salbool: Automatic rewrite of sal_False/TrueStephan Bergmann Change-Id: I3cb9226ef6bebb5062abfae312dce95f0ef74385 2016-03-30Replace MACRO_PRFIX and MACRO_POSTFIX in eventsupplier.cxxJulien Nabet Change-Id: Ifd08a3414468e7685f55af66ed05f7a88187fa0e Reviewed-on: https://gerrit.libreoffice.org/23606 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> 2016-02-09Remove excess newlinesChris Sherlock A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> 2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann Change-Id: I7213b49b09ddcb00841aa5f63343baeab0e65fa4 2015-11-05use uno::Reference::set method instead of assignmentNoel Grandin Change-Id: Id9e7621ca7170d6cc80d8ce14f155ce564691ec0 2015-08-11loplugin: defaultparamsNoel Grandin Change-Id: Ibff26c023655d36f0fa71ead399a6116c2988607 2015-06-26loplugin:stringconstant: handle OUString+=OUString(literal)Stephan Bergmann Change-Id: I40b8e5df15d836a00536d9f21cd1125264aefd86 2015-04-07Remove dead INetProtocol::VimStephan Bergmann ...which removes the need to abstract over the standard URI '%' escape prefix vs. the silly vim '=' special case invention. Change-Id: I54a52dd912c3aafc38275a0ac2466a6daeec328f 2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann Change-Id: I1fee5879bbf0293dc765247f0587ce52c1570a3e 2014-12-18sfx2: Use appropriate OUString functions on string constantsStephan Bergmann Change-Id: Iea55d87a7c7b2afc408e3822121f79234481eccc 2014-06-27remove SFX_APP() macro that was a mer wrapper for SfxGetApp()Norbert Thiebaud Change-Id: I480a789c767dd671775c9d70d96bf71908f21f5b 2014-04-07sfx2: sal_Bool->boolNoel Grandin Change-Id: I48ae51781f64e60deb0c03352087100729c8c3cd 2014-04-01Bin pointless INET_HEX_ESCAPETor Lillqvist Change-Id: I72238e511c2fca4a4aba0be60b0f2d3b1f46e5c2 2014-03-18sfx2: sal_Bool->boolNoel Grandin Change-Id: I87c5a180566e9da185c2992844e6522e82c17747 2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3 2014-02-23Remove unneccessary commentsAlexander Wilms Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> 2014-01-24Introduce com.sun.star.task.theJobExecutor singleton.Matúš Kukan To replace com.sun.star.task.JobExecutor single-instance service, incorrectly converted in 748aa84e9808ad31c6ff6b71459525c82de10e58 [including changes by Stephan Bergmann <sbergman@redhat.com>] Change-Id: I4cea2c63a20b5b22f6e1f822fb35fcc4d0397687 Reviewed-on: https://gerrit.libreoffice.org/7609 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com> 2014-01-21Fix bogus mass-conversion equalsAsciiL -> startsWithStephan Bergmann 3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to startsWith calls" should rather have converted to oprator ==. Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21 2014-01-17bool improvementsStephan Bergmann Change-Id: I9f5564100aa64ff4940dd93a81ff5a8d8edc7a07 2014-01-16Revert "Revert "sfx: Use constructor feature for SfxGlobalEvents_Impl.""Stephan Bergmann This reverts commit ef37781683e28d1837cfce86de990e59d2c10c5f, now that constructor function support for singleton implementations is in place and the proper singleton theGlobalEventBroadcaster has been introduced (and drops sfx_component_getFactory completely, which had become unused except for SfxGlobalEvents_Impl in the meantime). Change-Id: I2d587989dd0a1fbea6fe75f7dc2af954ac81c4ed 2014-01-15Revert "sfx: Use constructor feature for SfxGlobalEvents_Impl."Matúš Kukan This reverts commit 9b73d3a4cd9c1aea29b51b1b23d0a44c34f2f8a2 because it breaks unit tests. Conflicts: sfx2/source/appl/appuno.cxx Change-Id: I7b2d2dc6ff8ade2c8dd29602827313c7bb01f97d 2014-01-15sfx: Use constructor feature for SfxGlobalEvents_Impl.Matúš Kukan Change-Id: Ie93235666e035d6a594cfbe112f7a0d935dae1c4 2014-01-15sfx: Use constructor feature for SfxMacroLoader.Matúš Kukan Extract that class to its own source file. Change-Id: Idc192354b88d4489db22f6f6e9b7f5178f4030e4 2013-12-10Fix another string conversion regression.Matúš Kukan Change-Id: I8297fd60b7db057504260a2304ccce6358bb9776 2013-11-20convert equalsAsciiL calls to startsWith callsNoel Grandin Convert code like: aStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ActiveConnection" ) ) to aStr.startsWith( "ActiveConnection" ) which compiles down to the same machine code. Change-Id: Id4b0c5e0f9afe716a468d3afc70374699848dc33 2013-11-11sfx2: include <> for external includesNorbert Thiebaud Change-Id: I63de4bc034020d19abd20f301194482da9a604f4