Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 853808 - <app-office/libreoffice-7.5 w/ media-fonts/cantarell-0.303.1: cannot print Cantarell
Summary: <app-office/libreoffice-7.5 w/ media-fonts/cantarell-0.303.1: cannot print Ca...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL: https://ask.libreoffice.org/t/can-one...
Whiteboard:
Keywords:
Depends on:
Blocks: 905701
  Show dependency tree
 
Reported: 2022-06-22 19:20 UTC by Joerg Schaible
Modified: 2023-05-14 06:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Example Document (TextCantarell.odt,10.88 KB, application/vnd.oasis.opendocument.text)
2022-06-22 19:23 UTC, Joerg Schaible
Details
Example PDF (TextCantarell.pdf,18.68 KB, application/pdf)
2022-06-22 19:24 UTC, Joerg Schaible
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Schaible 2022-06-22 19:20:35 UTC
LibreOffice-7.3.3.2-r3 cannot print text with font Cantarell (media-fonts/cantarell-0.303.1). This is true for the printer but also for PDF export.

The previous installed version (7.2.6.2-r1) had no such problems. Other applications (Calligra Word, KMail) do not have this problem.

I can reproduce this with two different installations.

Reproducible: Always

Steps to Reproduce:
1. Open LibreOffice Writer with a new document
2. Select Cantarell as font and write something
3. Print or export the document as PDF
Actual Results:  
Any text written with Cantarell is missing (not in print preview).

Expected Results:  
Text with Cantarell is printed too.

$ emerge --info
Portage 3.0.30 (python 3.9.12-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.3.0, glibc-2.34-r13, 5.15.41-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.15.41-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-glibc2.34
KiB Mem:    16388216 total,   7501108 free
KiB Swap:   17124348 total,  17124348 free
Timestamp of repository gentoo: Fri, 17 Jun 2022 09:33:00 +0000
Head commit of repository gentoo: c5f7b5209b3323a129a981843015377846ea0f61

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.9.12::gentoo, 3.10.4::gentoo
dev-lang/rust:             1.60.0::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo, 14.0.4::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.4::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.4::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r13::gentoo
Repositories:

gentoo
    location: /mnt/portage/tree/central
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

local
    location: /mnt/portage/tree/local
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.0/conf /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.0/conf /usr/share/maven-bin-3.1/conf /usr/share/maven-bin-3.2/conf /usr/share/maven-bin-3.3/conf /usr/share/maven-bin-3.5/conf /usr/share/maven-bin-3.6/conf /usr/share/maven-bin-3.8/conf /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"
DISTDIR="/mnt/portage/distfiles/floh"
EMERGE_DEFAULT_OPTS="--autounmask=n --with-bdeps=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.fau.de/gentoo/ http://ftp.heanet.ie/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en en_GB en_US fr"
MAKEOPTS="-j3 -s"
PKGDIR="/mnt/portage/packages/core-i7"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp/portage"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bmp branding bzip2 cairo caps cdda cdr cli crypt cups curl dbus declarative dga dri dts dvd dvdr egl elogind encode exif flac fortran gbm gdbm gif gpm gstreamer gtk gui iconv icu idn jpeg jpeg2k kde kwallet lcms libglvnd libnotify libtirpc lzma mad maildir mmap mmx mmxext mng mp3 mp4 mpeg multilib mysql ncurses nptl odbc ogg openexr opengl openmp openssh openvg pam pango pcre pdf plasma png policykit ppds qml qt5 readline sdl seccomp semantic-desktop spell split-usr sse sse2 ssl startup-notification svg syslog telemetry theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vim-syntax vorbis wayland webp widgets wxwidgets x264 x265 xattr xcb xml xpm xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="multiboot pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby27" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Joerg Schaible 2022-06-22 19:23:55 UTC
Created attachment 786830 [details]
Example Document

The attached document has three lines. First with Arial, second with Cantarell, and the third with Noto Sans.
Comment 2 Joerg Schaible 2022-06-22 19:24:54 UTC
Created attachment 786833 [details]
Example PDF

The example document as PDF export. Second line with Cantarell is missing.
Comment 3 Joerg Schaible 2022-08-06 13:18:22 UTC
The problem stays for libreoffice-7.3.4.2.

However, it depends on the version of Cantarell. Cantarell of package media-fonts/cantarell-0.303.1 fails, nothing with the font is printed. Downgrading to media-fonts/cantarell-0.301 (previous stable version) solves the problem. 

In contrast, KWriter or Calligra Word have no problems printing text in Cantarell  of version 0.303.1.
Comment 4 Andreas Sturmlechner gentoo-dev 2023-03-01 09:55:49 UTC
It seems that current version of the font package does not install the non-VF variant anymore. Was that intentional?
Comment 5 Matt Turner gentoo-dev 2023-03-01 15:49:57 UTC
(In reply to Andreas Sturmlechner from comment #4)
> It seems that current version of the font package does not install the
> non-VF variant anymore. Was that intentional?

Yes, I think so. I remember not knowing what to do with the new options.

> <mattst88> cantarell adds some new buildstatics/buildvf build options, and I don't know what we should do with them

and the response was

> <leio> mattst88: however, I looked at the diffs and remembered what I saw talked about, I guess this is about variable vs no able fonts stuff
> <leio> so, we should pick one of those and ship it; I guess we should try variable fonts
> <leio> the build options are for building those fonts from source (fontforge et al)
> <leio> we use prebuilt, so we pass false to the new options
> <leio> there is 0.303.1 out, which includes the prebuilt variable font
> <leio> looks like 0.303 was done wrong and didn't include the prebuilt font in the tarball
> <leio> so 0.301 tarball prebuilt folder had separate OTF for the separate boldness, AND a variable font
> <leio> 0.303.1 only has the VF
> <leio> so I think it should be a pretty uneventful bump, and the installed files should have Bold, ExtraBold and co otf files removed, compared to 301
> <leio> with Cantarell-VF.otf still there
> <leio> however upstream might at some point dist the tarball with -Dbuildstatics=true and then the other OTF come back in tarball, which then our font.eclass would pick up again automatically, but NEWS says to pick VF or the others, not both
> <leio> both sets*
> <leio> so the NEWS "Also build two packages with variable and static fonts." part is rather confusing, as the tarballs only have the VF stuff
> <leio> it might become eventful if we have something that doesn't support variable font properly

I really know nothing about fonts, so if we need to change something, I will happy defer to someone more knowledgeable.
Comment 7 Andreas Sturmlechner gentoo-dev 2023-05-14 06:49:07 UTC
7.5.3.2 stabilisation pending.