Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Installing Calibri font in Stretch

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Installing Calibri font in Stretch

#1 Post by Lysander »

It's a fact of life that whether I like it or not I'm going to have to start using Calibri. I got a document sent through by my uni and it was originally written in Calibri. It came out a bit weird in LO 6.

Now, I know that Carlito, or whatever it's called, is supposed to be metrically the same as Calibri, but I'm not convinced. It's a breeze to install Calibri in Slackware and comparing the two versions in both OSs, the delicate formatting of the doc came out differently.

The Debian wiki is not helpful, there's an article on how to install Calibri but it's way out of date:

https://wiki.debian.org/ppviewerFonts

I came across this article which looking promising:
copy-and-paste or type the following command into the terminal and press Enter. This command downloads the VistaFonts-Installer script and runs it. The script downloads the fonts from Microsoft and installs them on your system:

wget -qO- http://plasmasturm.org/code/vistafonts- ... -installer | bash
https://www.pcworld.com/article/2863497 ... uites.html

Is it safe to use this script suggested to install Calibri?

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Installing Calibri font in Stretch

#2 Post by bw123 »

Instead of piping it to bash, why don't you wget it only and see what it is?

I only use free fonts, so I can't say what the license is or whether it's legal to use on linux at all. A quick websearch says it is now part of cleartype instead of truetype. You probably supposed to buy it.
resigned by AI ChatGPT

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: Installing Calibri font in Stretch

#3 Post by Lysander »

It comes up with this:

Code: Select all

#!/bin/sh
# Copyright (c) 2007 Aristotle Pagaltzis
# 
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.

set -e

exists() { which "$1" &> /dev/null ; }

if ! [ -d ~/.fonts ] ; then
	exec 2>&1
	echo 'There is no .fonts directory in your home.'
	echo 'Is fontconfig set up for privately installed fonts?'
	exit 1
fi

# split up to keep the download command short
DL_HOST=download.microsoft.com
DL_PATH=download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26
ARCHIVE=PowerPointViewer.exe
URL="http://$DL_HOST/$DL_PATH/$ARCHIVE"

if ! [ -e "$ARCHIVE" ] ; then
	if   exists curl  ; then curl -O "$URL"
	elif exists wget  ; then wget    "$URL"
	elif exists fetch ; then fetch   "$URL"
	fi
fi

TMPDIR=`mktemp -d`
trap 'rm -rf "$TMPDIR"' EXIT INT QUIT TERM

cabextract -L -F ppviewer.cab -d "$TMPDIR" "$ARCHIVE"

cabextract -L -F '*.TT[FC]' -d ~/.fonts "$TMPDIR/ppviewer.cab"

( cd ~/.fonts && mv cambria.ttc cambria.ttf && chmod 600 \
	calibri{,b,i,z}.ttf cambria{,b,i,z}.ttf candara{,b,i,z}.ttf \
	consola{,b,i,z}.ttf constan{,b,i,z}.ttf corbel{,b,i,z}.ttf )

fc-cache -fv ~/.fonts
EDIT: I tried it anyway, it's outdated, I imagine the source was removed by MS.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Installing Calibri font in Stretch

#4 Post by bw123 »

It belongs to someone, it's not free. They can change the license or terms whenever they want. Maybe the university can get you a license if it is required for your classes? Or there are ways to use M$ products on linux, like wine, or virtual machine.
resigned by AI ChatGPT

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Installing Calibri font in Stretch

#5 Post by stevepusser »

If you have a Windows license, I suppose you could argue that you could use them...but seriously, even if you don't, nobody's coming after you if you use those fonts just for personal use. Just don't distribute it. If you have a Windows install elsewhere, you may already have the font and just need to copy it into /usr/share/fonts or ~/.fonts.
MX Linux packager and developer

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: Installing Calibri font in Stretch

#6 Post by Lysander »

Thanks to both of you. I have given up on this though for now. Calibri, or the lack thereof, is not the only problem I am having with this document. Issues include but are not limited to:

- Highlighting of words being skew-whiff with patches of yellow not surrounding intended words
- Tick-boxes that do not tick
- words spilling over tables and onto the next page
- hanging indents looking untidy and uneven
- a phantom page number appearing in the middle of a page
- and, bizarrely, when I save the form the tick-boxes disappear

I think the only way for me to tackle this form is to go into uni and use Word there, though I don't know if I'll see much difference. Whatever they have used to generate this, the compatibility is awful with Libre Office. I also used the file with Google Docs and it had the same issues. It's very poorly made.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Installing Calibri font in Stretch

#7 Post by debiman »

why LO 6?
are you on testing?

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: Installing Calibri font in Stretch

#8 Post by Wheelerof4te »

^I know he is using backported version, because he had some problems with documents in LO5.
https://packages.debian.org/stretch-bac ... ibreoffice

Post Reply