summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-03-07 13:50:31 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-03-07 21:03:06 +0100
commite97c77dd12f4fd6babaf29057c59f5ddc38e38fd (patch)
tree4bb17a888b6ec12dc2ae4f21af26f9e6413d88cf
parent87d3f768f3ecded1e1392442181edb287aed9e2e (diff)
CppunitTest_sw_ooxmlexport6: turn on set_non_application_font_use
From bin/replace_missing_fonts.sh: Replacing 'Kings Caslon Text' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data/TestVMLData.docx Replacing 'Impact' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data/fdo74110.docx Replacing 'Century Gothic' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data/gradient-fill-preservation.docx Replacing 'Kings Caslon Text' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data/image_data.docx Replacing 'Segoe UI' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data/tdf119054.docx Replacing 'DINPro-Medium' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data/tdf128752.docx Replacing 'Open Sans Light' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data/tdf153891.docx Replacing 'Lora - regular' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data/tdf153891.docx Replacing 'Century Gothic' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data/tdf153891.docx Replacing 'Segoe UI' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data/tdf153891.docx Replacing 'Times' with 'Liberation Serif' in sw/qa/extras/ooxmlexport/data/tdf93676-1.odt Replacing 'FreeSans' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data/tdf93676-1.odt Replacing 'Times' with 'Liberation Serif' in sw/qa/extras/ooxmlexport/data/testOuterShdw.docx Replacing 'Jokerman' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data/testOuterShdw.docx Replacing 'Century Gothic' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data/testOuterShdw.docx Replacing 'Calibri Light' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data//tdf119054.docx Replacing 'Calibri Light' with 'Noto Sans' in sw/qa/extras/ooxmlexport/data//tdf132514.docx Also remove some replacements in replace_missing_fonts.sh which are not needed Change-Id: Ife0e4a6852907e658b2f2ed42c91b26b5eb06572 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164536 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rwxr-xr-xbin/replace_missing_fonts.sh20
-rw-r--r--sw/CppunitTest_sw_ooxmlexport6.mk4
-rw-r--r--sw/qa/extras/ooxmlexport/data/TestVMLData.docxbin50255 -> 41168 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/data/fdo74110.docxbin22916 -> 20029 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/data/gradient-fill-preservation.docxbin9390 -> 10457 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/data/image_data.docxbin50255 -> 41168 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf119054.docxbin18842 -> 17558 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf128752.docxbin13621 -> 12980 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf132514.docxbin16787 -> 16222 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf153891.docxbin24988 -> 24928 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf93676-1.odtbin18743 -> 19502 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/data/testOuterShdw.docxbin272537 -> 213243 bytes
12 files changed, 14 insertions, 10 deletions
diff --git a/bin/replace_missing_fonts.sh b/bin/replace_missing_fonts.sh
index 3dd078dc89e5..7c676d30052a 100755
--- a/bin/replace_missing_fonts.sh
+++ b/bin/replace_missing_fonts.sh
@@ -2,28 +2,28 @@
declare -A replacements
replacements["Agency FB"]="Noto Sans"
-replacements["Noto Sans Light"]="Noto Sans"
replacements["Segoe UI"]="Noto Sans"
replacements["Univers 45 Light"]="Noto Sans"
replacements["Trebuchet MS"]="Noto Sans"
-replacements["Georgia"]="Noto Serif"
replacements["Perpetua"]="Noto Sans"
-replacements["Garamond"]="Noto Serif"
replacements["Calibri Light"]="Noto Sans"
-replacements["Consolas"]="DejaVu Sans Mono"
-replacements["Verdana"]="Noto Sans"
replacements["Rockwell"]="Noto Sans"
-replacements["Tms Rmn"]="DejaVu Sans"
-replacements["Tahoma"]="Noto Sans"
replacements["DFKai-SB"]="Noto Sans"
replacements["Gill Sans MT"]="Noto Sans"
-replacements["Helvetica"]="Liberation Sans"
-replacements["Liberation Serif"]="DejaVu Sans"
replacements["BentonSans Medium"]="Noto Sans"
replacements["BentonSans"]="Noto Sans"
replacements["AdvPS88D1"]="Noto Sans"
replacements["NexusSansOT"]="Noto Sans"
replacements["Segoe Script"]="Noto Sans"
+replacements["Impact"]="Noto Sans"
+replacements["Century Gothic"]="Noto Sans"
+replacements["Kings Caslon Text"]="Noto Sans"
+replacements["Times"]="Liberation Serif"
+replacements["Jokerman"]="Noto Sans"
+replacements["FreeSans"]="Noto Sans"
+replacements["DINPro-Medium"]="Noto Sans"
+replacements["Open Sans Light"]="Noto Sans"
+replacements["Lora - regular"]="Noto Sans"
extracted_folder=".temp_extracted"
@@ -31,7 +31,7 @@ for file in $(find "$1" -type f); do
file_name=$(basename "$file")
current_extension="${file_name##*.}"
- if [[ $current_extension == "docx" || $current_extension == "xlsx" || $current_extension == "pptx" ]]; then
+ if [[ $current_extension == "docx" || $current_extension == "xlsx" || $current_extension == "pptx" || $current_extension == "odt" ]]; then
base_name="${file_name%.*}"
# move the file to a new .zip file
diff --git a/sw/CppunitTest_sw_ooxmlexport6.mk b/sw/CppunitTest_sw_ooxmlexport6.mk
index 9b3ebe18146c..bad555c42bb9 100644
--- a/sw/CppunitTest_sw_ooxmlexport6.mk
+++ b/sw/CppunitTest_sw_ooxmlexport6.mk
@@ -11,4 +11,8 @@
$(eval $(call sw_ooxmlexport_test,6))
+ifneq ($(filter MORE_FONTS,$(BUILD_TYPE)),)
+$(eval $(call gb_CppunitTest_set_non_application_font_use,sw_ooxmlexport6,abort))
+endif
+
# vim: set noet sw=4 ts=4:
diff --git a/sw/qa/extras/ooxmlexport/data/TestVMLData.docx b/sw/qa/extras/ooxmlexport/data/TestVMLData.docx
index a2f89b146c7e..25dd8d4d36e1 100644
--- a/sw/qa/extras/ooxmlexport/data/TestVMLData.docx
+++ b/sw/qa/extras/ooxmlexport/data/TestVMLData.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/data/fdo74110.docx b/sw/qa/extras/ooxmlexport/data/fdo74110.docx
index 6b7ab0e415c2..105522971d2b 100644
--- a/sw/qa/extras/ooxmlexport/data/fdo74110.docx
+++ b/sw/qa/extras/ooxmlexport/data/fdo74110.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/data/gradient-fill-preservation.docx b/sw/qa/extras/ooxmlexport/data/gradient-fill-preservation.docx
index c9abc10d2922..8bb32e5fe43b 100644
--- a/sw/qa/extras/ooxmlexport/data/gradient-fill-preservation.docx
+++ b/sw/qa/extras/ooxmlexport/data/gradient-fill-preservation.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/data/image_data.docx b/sw/qa/extras/ooxmlexport/data/image_data.docx
index a2f89b146c7e..08d0eb841643 100644
--- a/sw/qa/extras/ooxmlexport/data/image_data.docx
+++ b/sw/qa/extras/ooxmlexport/data/image_data.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/data/tdf119054.docx b/sw/qa/extras/ooxmlexport/data/tdf119054.docx
index 9c3657c24a97..f57fe7b7549c 100644
--- a/sw/qa/extras/ooxmlexport/data/tdf119054.docx
+++ b/sw/qa/extras/ooxmlexport/data/tdf119054.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/data/tdf128752.docx b/sw/qa/extras/ooxmlexport/data/tdf128752.docx
index 0e49291414d7..d5d7552053f5 100644
--- a/sw/qa/extras/ooxmlexport/data/tdf128752.docx
+++ b/sw/qa/extras/ooxmlexport/data/tdf128752.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/data/tdf132514.docx b/sw/qa/extras/ooxmlexport/data/tdf132514.docx
index d32f84104e26..bd18d8a2f592 100644
--- a/sw/qa/extras/ooxmlexport/data/tdf132514.docx
+++ b/sw/qa/extras/ooxmlexport/data/tdf132514.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/data/tdf153891.docx b/sw/qa/extras/ooxmlexport/data/tdf153891.docx
index 6fe8092982b6..876c0bb50ae9 100644
--- a/sw/qa/extras/ooxmlexport/data/tdf153891.docx
+++ b/sw/qa/extras/ooxmlexport/data/tdf153891.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/data/tdf93676-1.odt b/sw/qa/extras/ooxmlexport/data/tdf93676-1.odt
index 37d621b903cd..26f186e37955 100644
--- a/sw/qa/extras/ooxmlexport/data/tdf93676-1.odt
+++ b/sw/qa/extras/ooxmlexport/data/tdf93676-1.odt
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/data/testOuterShdw.docx b/sw/qa/extras/ooxmlexport/data/testOuterShdw.docx
index cc559a323c9a..19b7e57b71f3 100644
--- a/sw/qa/extras/ooxmlexport/data/testOuterShdw.docx
+++ b/sw/qa/extras/ooxmlexport/data/testOuterShdw.docx
Binary files differ