Installing Calibri font in Stretch

If none of the more specific forums is the right place to ask

Installing Calibri font in Stretch

Postby Lysander » 2018-06-16 13:59

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
Lysander
 
Posts: 558
Joined: 2017-02-23 10:07
Location: London

Re: Installing Calibri font in Stretch

Postby bw123 » 2018-06-16 14:40

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.
User avatar
bw123
 
Posts: 3283
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Installing Calibri font in Stretch

Postby Lysander » 2018-06-16 15:15

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
Lysander
 
Posts: 558
Joined: 2017-02-23 10:07
Location: London

Re: Installing Calibri font in Stretch

Postby bw123 » 2018-06-16 15:44

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.
User avatar
bw123
 
Posts: 3283
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Installing Calibri font in Stretch

Postby stevepusser » 2018-06-16 16:33

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.6, Pale Moon 28.1.0, wine-staging 3.16, qBittorrent 4.1.3, Linux kernel 4.18.8, virtualbox 5.2.18
User avatar
stevepusser
 
Posts: 9916
Joined: 2009-10-06 05:53

Re: Installing Calibri font in Stretch

Postby Lysander » 2018-06-16 16:48

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 [I think the institution just used squares]
- 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
Lysander
 
Posts: 558
Joined: 2017-02-23 10:07
Location: London

Re: Installing Calibri font in Stretch

Postby debiman » 2018-06-17 07:17

why LO 6?
are you on testing?
User avatar
debiman
 
Posts: 2818
Joined: 2013-03-12 07:18

Re: Installing Calibri font in Stretch

Postby Wheelerof4te » 2018-06-17 07:33

^I know he is using backported version, because he had some problems with documents in LO5.
https://packages.debian.org/stretch-bac ... ibreoffice
User avatar
Wheelerof4te
 
Posts: 1134
Joined: 2015-08-30 20:14


Return to General Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable