[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-4.1' - 4 commits - download.lst librelogo/source Makefile.fetch more_fonts/ExternalPackage_caladea.mk more_fonts/ExternalPackage_carlito.mk more_fonts/Module_more_fonts.mk more_fonts/UnpackedTarball_caladea.mk more_fonts/UnpackedTarball_carlito.mk officecfg/registry scp2/source
László Németh
nemeth at numbertext.org
Thu Oct 24 08:14:42 PDT 2013
Makefile.fetch | 2 ++
download.lst | 2 ++
librelogo/source/LibreLogo/LibreLogo.py | 17 ++++++++++++-----
more_fonts/ExternalPackage_caladea.mk | 21 +++++++++++++++++++++
more_fonts/ExternalPackage_carlito.mk | 21 +++++++++++++++++++++
more_fonts/Module_more_fonts.mk | 4 ++++
more_fonts/UnpackedTarball_caladea.mk | 14 ++++++++++++++
more_fonts/UnpackedTarball_carlito.mk | 14 ++++++++++++++
officecfg/registry/data/org/openoffice/VCL.xcu | 24 +++++++++++++++++++++++-
scp2/source/ooo/file_font_ooo.scp | 4 ++++
scp2/source/ooo/module_hidden_ooo.scp | 2 ++
11 files changed, 119 insertions(+), 6 deletions(-)
New commits:
commit e4b24b0f5816c232c9589ae498bd4337cc09058b
Author: László Németh <nemeth at numbertext.org>
Date: Thu Oct 24 16:11:33 2013 +0200
librelogo: fix Writer/Draw synchronization in cropped SVG export
Change-Id: Id7dc7a2853a8c56ee56eab55c078650e16c278fd
diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py
index 216bb0f..b524a8c 100644
--- a/librelogo/source/LibreLogo/LibreLogo.py
+++ b/librelogo/source/LibreLogo/LibreLogo.py
@@ -1255,7 +1255,7 @@ def create_valid_svg_file(filename):
f.write(s)
def __groupend__(name = ""):
- global __group__, __grouplefthang__, __groupstack__
+ global __group__, __grouplefthang__, __groupstack__, __halt__
g = 0
if __group__.getCount() > 1:
if __grouplefthang__ < 0:
@@ -1283,19 +1283,26 @@ def __groupend__(name = ""):
d = ctx.ServiceManager.createInstanceWithContext("com.sun.star.frame.Desktop", ctx)
draw = d.loadComponentFromURL("private:factory/sdraw", "_blank", 0, ())
drawpage = draw.getDrawPages().getByIndex(0)
+ while XSCRIPTCONTEXT.getDocument() != draw:
+ if XSCRIPTCONTEXT.getDocument() not in [draw, _.doc, None]:
+ __halt__ = True
+ return
+ __time__.sleep(0.1)
__dispatcher__(".uno:Paste", (), draw)
__dispatcher__(".uno:FormatGroup", (), draw)
pic = drawpage.getByIndex(0)
pic.setPosition(__Point__((g.BoundRect.Width - g.Size.Width)//2, (g.BoundRect.Height - g.Size.Height)//2))
drawpage.Height, drawpage.Width = g.BoundRect.Height, g.BoundRect.Width
- __time__.sleep(1) # avoid writing problem
if not os.path.isabs(name):
name = os.path.expanduser('~') + os.path.sep + name
__dispatcher__(".uno:ExportTo", (__getprop__("URL", unohelper.systemPathToFileUrl(name)), __getprop__("FilterName", "draw_svg_Export")), draw)
- __time__.sleep(1)
- create_valid_svg_file(name)
draw.close(True)
-
+ while XSCRIPTCONTEXT.getDocument() != _.doc:
+ if XSCRIPTCONTEXT.getDocument() not in [draw, _.doc, None]:
+ __halt__ = True
+ return
+ __time__.sleep(0.1)
+ create_valid_svg_file(name)
__group__ = __groupstack__.pop()
if __group__ and g:
__group__.add(g)
commit 77a56e7b2d09ba772ad536271667576921de6ee1
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Oct 23 14:57:32 2013 +0100
bundle Carlito and Caladea
Change-Id: Ibb68ad33764bcbab88e68c35805a00287177a5c8
diff --git a/download.lst b/download.lst
index 996a509..ea91017 100644
--- a/download.lst
+++ b/download.lst
@@ -24,6 +24,8 @@ export DBGHELP_DLL := 13fbc2e8b37ddf28181dd6d8081c2b8e-dbghelp.dll
export EPM_TARBALL := 3ade8cfe7e59ca8e65052644fed9fca4-epm-3.7.tar.gz
export EXPAT_TARBALL := dd7dab7a5fea97d2a6a43f511449b7cd-expat-2.1.0.tar.gz
export FONTCONFIG_TARBALL := 77e15a92006ddc2adbb06f840d591c0e-fontconfig-2.8.0.tar.gz
+export FONT_CALADEA_TARBALL := 368f114c078f94214a308a74c7e991bc-crosextrafonts-20130214.tar.gz
+export FONT_CARLITO_TARBALL := c74b7223abe75949b4af367942d96c7a-crosextrafonts-carlito-20130920.tar.gz
export FONT_DEJAVU_TARBALL := f872f4ac066433d8ff92f5e316b36ff9-dejavu-fonts-ttf-2.33.zip
export FONT_GENTIUM_TARBALL := 35efabc239af896dfb79be7ebdd6e6b9-gentiumbasic-fonts-1.10.zip
export FONT_LIBERATION_NARROW_TARBALL := 0be45d54cc5e1c2e3102e32b8c190346-liberation-fonts-ttf-1.07.1.tar.gz
diff --git a/more_fonts/ExternalPackage_caladea.mk b/more_fonts/ExternalPackage_caladea.mk
new file mode 100644
index 0000000..668fb5b
--- /dev/null
+++ b/more_fonts/ExternalPackage_caladea.mk
@@ -0,0 +1,21 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_ExternalPackage_ExternalPackage,fonts_caladea,font_caladea))
+
+$(eval $(call gb_ExternalPackage_set_outdir,fonts_caladea,$(INSTDIR)))
+
+$(eval $(call gb_ExternalPackage_add_unpacked_files,fonts_caladea,share/fonts/truetype,\
+ Caladea-Italic.ttf \
+ Caladea-Regular.ttf \
+ Caladea-BoldItalic.ttf \
+ Caladea-Bold.ttf \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/more_fonts/ExternalPackage_carlito.mk b/more_fonts/ExternalPackage_carlito.mk
new file mode 100644
index 0000000..e0a9cff
--- /dev/null
+++ b/more_fonts/ExternalPackage_carlito.mk
@@ -0,0 +1,21 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_ExternalPackage_ExternalPackage,fonts_carlito,font_carlito))
+
+$(eval $(call gb_ExternalPackage_set_outdir,fonts_carlito,$(INSTDIR)))
+
+$(eval $(call gb_ExternalPackage_add_unpacked_files,fonts_carlito,share/fonts/truetype,\
+ Carlito-BoldItalic.ttf \
+ Carlito-Regular.ttf \
+ Carlito-Italic.ttf \
+ Carlito-Bold.ttf \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/more_fonts/Module_more_fonts.mk b/more_fonts/Module_more_fonts.mk
index c9a75148..3f4a653 100644
--- a/more_fonts/Module_more_fonts.mk
+++ b/more_fonts/Module_more_fonts.mk
@@ -11,6 +11,8 @@ $(eval $(call gb_Module_Module,more_fonts))
$(eval $(call gb_Module_add_targets,more_fonts,\
Package_conf \
+ ExternalPackage_caladea \
+ ExternalPackage_carlito \
ExternalPackage_dejavu \
ExternalPackage_gentium \
ExternalPackage_liberation \
@@ -20,6 +22,8 @@ $(eval $(call gb_Module_add_targets,more_fonts,\
ExternalPackage_ptserif \
ExternalPackage_sourcecode \
ExternalPackage_sourcesans \
+ UnpackedTarball_caladea \
+ UnpackedTarball_carlito \
UnpackedTarball_dejavu \
UnpackedTarball_gentium \
UnpackedTarball_liberation \
diff --git a/more_fonts/UnpackedTarball_caladea.mk b/more_fonts/UnpackedTarball_caladea.mk
new file mode 100644
index 0000000..7f5d65c
--- /dev/null
+++ b/more_fonts/UnpackedTarball_caladea.mk
@@ -0,0 +1,14 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UnpackedTarball_UnpackedTarball,font_caladea))
+
+$(eval $(call gb_UnpackedTarball_set_tarball,font_caladea,$(FONT_CALADEA_TARBALL)))
+
+# vim: set noet sw=4 ts=4:
diff --git a/more_fonts/UnpackedTarball_carlito.mk b/more_fonts/UnpackedTarball_carlito.mk
new file mode 100644
index 0000000..d14f291
--- /dev/null
+++ b/more_fonts/UnpackedTarball_carlito.mk
@@ -0,0 +1,14 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UnpackedTarball_UnpackedTarball,font_carlito))
+
+$(eval $(call gb_UnpackedTarball_set_tarball,font_carlito,$(FONT_CARLITO_TARBALL)))
+
+# vim: set noet sw=4 ts=4:
diff --git a/scp2/source/ooo/file_font_ooo.scp b/scp2/source/ooo/file_font_ooo.scp
index e7a2da35..ccc1327 100644
--- a/scp2/source/ooo/file_font_ooo.scp
+++ b/scp2/source/ooo/file_font_ooo.scp
@@ -58,6 +58,10 @@ STD_FONT_FILELIST(gid_File_Fnt_SourceSans, "fonts_sourcesans.filelist")
// Source Code Pro fonts
STD_FONT_FILELIST(gid_File_Fnt_SourceCode, "fonts_sourcecode.filelist")
+//Carlito and Caladea fonts
+STD_FONT_FILELIST(gid_File_Fnt_Carlito, "fonts_carlito.filelist")
+STD_FONT_FILELIST(gid_File_Fnt_Caladea, "fonts_caladea.filelist")
+
#endif
// fontconfig updates to allow proper use of local fonts
diff --git a/scp2/source/ooo/module_hidden_ooo.scp b/scp2/source/ooo/module_hidden_ooo.scp
index f75f131..696b47b 100644
--- a/scp2/source/ooo/module_hidden_ooo.scp
+++ b/scp2/source/ooo/module_hidden_ooo.scp
@@ -473,6 +473,8 @@ Module gid_Module_Root_Fonts_OOo_Hidden
Default = YES;
Styles = (HIDDEN_ROOT);
Files = (gid_File_Fnt_Opensymb,
+ gid_File_Fnt_Caladea,
+ gid_File_Fnt_Carlito,
gid_File_Fnt_DejaVu,
gid_File_Fnt_Gentium,
gid_File_Fnt_LibSansNarrow,
commit db154f3f0ddb10aab43c21c163ef53682a9ebce7
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Oct 24 09:56:49 2013 +0100
is this the foo we need now to download automatically
Change-Id: I156c2a2d645c140bfd716f41d8c81c0656ceee56
diff --git a/Makefile.fetch b/Makefile.fetch
index e743d62..cde2e86 100644
--- a/Makefile.fetch
+++ b/Makefile.fetch
@@ -96,6 +96,8 @@ $(WORKDIR)/download: $(BUILDDIR)/config_host.mk $(SRCDIR)/download.lst $(SRCDIR)
$(call fetch_Optional,EPM,$(EPM_TARBALL)) \
$(call fetch_Optional,EXPAT,$(EXPAT_TARBALL)) \
$(call fetch_Optional,MARIADB,$(MARIADB_TARBALL)) \
+ $(call fetch_Optional,MORE_FONTS,$(FONT_CALADEA_TARBALL)) \
+ $(call fetch_Optional,MORE_FONTS,$(FONT_CARLITO_TARBALL)) \
$(call fetch_Optional,MORE_FONTS,$(FONT_DEJAVU_TARBALL)) \
$(call fetch_Optional,MORE_FONTS,$(FONT_GENTIUM_TARBALL)) \
$(call fetch_Optional,MORE_FONTS,$(FONT_LIBERATION_NARROW_TARBALL)) \
commit 2858e6f5bbefd2590a1ac6243be58e50fdd242e5
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Oct 23 15:13:19 2013 +0100
Set carlito/calibri caladea/cambria as MSOffice export replacements
so when we save one of our files that uses the chromium fonts to e.g. .doc we
can set the in-file recommended fallback font to the MS equivalents to tell
MSOffice what to use.
Change-Id: Ia04022c91a7c43729ef315011addf33c316619ee
diff --git a/officecfg/registry/data/org/openoffice/VCL.xcu b/officecfg/registry/data/org/openoffice/VCL.xcu
index b73dacc..e3b506a 100644
--- a/officecfg/registry/data/org/openoffice/VCL.xcu
+++ b/officecfg/registry/data/org/openoffice/VCL.xcu
@@ -1540,7 +1540,13 @@
<value>Normal,SansSerif</value>
</prop>
</node>
- <node oor:name="candara" oor:op="replace">
+ <node oor:name="carlito" oor:op="replace">
+ <prop oor:name="SubstFonts">
+ <value>calibri;hiraginomarugothicpronw3;hiraginomarugothicprow3</value>
+ </prop>
+ <prop oor:name="SubstFontsMS">
+ <value>Calibri</value>
+ </prop>
<prop oor:name="FontType">
<value>Normal,SansSerif</value>
</prop>
@@ -1553,6 +1559,22 @@
<value>Normal,Serif</value>
</prop>
</node>
+ <node oor:name="caladea" oor:op="replace">
+ <prop oor:name="SubstFonts">
+ <value>cambria;applelisung</value>
+ </prop>
+ <prop oor:name="SubstFontsMS">
+ <value>Cambria</value>
+ </prop>
+ <prop oor:name="FontType">
+ <value>Normal,Serif</value>
+ </prop>
+ </node>
+ <node oor:name="candara" oor:op="replace">
+ <prop oor:name="FontType">
+ <value>Normal,SansSerif</value>
+ </prop>
+ </node>
<node oor:name="consolas" oor:op="replace">
<prop oor:name="FontType">
<value>Normal,SansSerif,Fixed</value>
More information about the Libreoffice-commits
mailing list