Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
efc28fae
Kaydet (Commit)
efc28fae
authored
Ock 24, 2012
tarafından
Thorsten Behrens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Disable svg font embedding for sd filters test, enable again.
üst
e5e0aae1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
16 deletions
+9
-16
svgexport.cxx
filter/source/svg/svgexport.cxx
+7
-3
CppunitTest_sd_filters_test.mk
sd/CppunitTest_sd_filters_test.mk
+1
-1
Module_sd.mk
sd/Module_sd.mk
+1
-12
No files found.
filter/source/svg/svgexport.cxx
Dosyayı görüntüle @
efc28fae
...
...
@@ -27,8 +27,6 @@
************************************************************************/
#define ITEMID_FIELD 0
#include "svgwriter.hxx"
#include "svgfontexport.hxx"
#include "svgfilter.hxx"
...
...
@@ -37,6 +35,7 @@
#include <com/sun/star/util/MeasureUnit.hpp>
#include <rtl/bootstrap.hxx>
#include <svtools/miscopt.hxx>
#include <svx/unopage.hxx>
#include <svx/unoshape.hxx>
...
...
@@ -488,9 +487,14 @@ sal_Bool SVGFilter::implExport( const Sequence< PropertyValue >& rDescriptor )
// font embedding
const
char
*
pSVGDisableFontEmbedding
=
getenv
(
"SVG_DISABLE_FONT_EMBEDDING"
);
rtl
::
OUString
aEmbedFontEnv
(
RTL_CONSTASCII_USTRINGPARAM
(
"${SVG_DISABLE_FONT_EMBEDDING}"
));
rtl
::
Bootstrap
::
expandMacros
(
aEmbedFontEnv
);
const
bool
bEmbedFonts
=
pSVGDisableFontEmbedding
?
false
:
(
aEmbedFontEnv
.
getLength
()
?
false
:
true
);
maFilterData
[
1
].
Name
=
B2UCONST
(
SVG_PROP_EMBEDFONTS
);
maFilterData
[
1
].
Value
<<=
(
sal_Bool
)
(
pSVGDisableFontEmbedding
?
sal_False
:
sal_True
);
maFilterData
[
1
].
Value
<<=
(
sal_Bool
)
(
bEmbedFonts
);
// Native decoration
maFilterData
[
2
].
Name
=
B2UCONST
(
SVG_PROP_NATIVEDECORATION
);
...
...
sd/CppunitTest_sd_filters_test.mk
Dosyayı görüntüle @
efc28fae
...
...
@@ -123,7 +123,7 @@ $(eval $(call gb_CppunitTest_add_old_components,sd_filters_test,\
$(eval $(call gb_CppunitTest_set_args,sd_filters_test,\
--headless \
--protector unoexceptionprotector$(gb_Library_DLLEXT) unoexceptionprotector \
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool)" \
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)
-env:SVG_DISABLE_FONT_EMBEDDING=YEAH
module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool)" \
))
# .../spool is required for the (somewhat strange) filter configuration
...
...
sd/Module_sd.mk
Dosyayı görüntüle @
efc28fae
...
...
@@ -52,18 +52,7 @@ endif
$(eval $(call gb_Module_add_subsequentcheck_targets,sd,\
JunitTest_sd_unoapi \
CppunitTest_sd_regression_test \
))
#TODO: Disabled for now, needs work by Thorsten Behrens to get "don't embed font
# config" taken into account, otherwise leads to failures like
# regression-test.cxx:84:Assertion
# Test name: SdFiltersTest::test
# assertion failed
# - Expression: false
# - Mismatch between reference file and exported file in line 60.
# Expected: <font-face font-family="StarSymbol embedded" units-per-em="2048"
# font-weight="normal" font-style="normal" ascent="1693" descent="318"/>
# Found : <font-face font-family="StarSymbol embedded" units-per-em="2048"
# font-weight="normal" font-style="normal" ascent="1640" descent="397"/>
# CppunitTest_sd_regression_test \
# vim: set noet sw=4 ts=4:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment