Ihbans windows d ubuntu

Содержание

Многие пользователи Windows при переходе на Ubuntu сразу же замечают разницу в шрифте и хотят установить те, к которым они привыкли.

Для корректного отображения шрифтов необходимо выбрать правильное разрешение экрана для вашего монитора

Это легко и просто делается. Для начала нужно установить сами шрифты.

Установка шрифтов

Копирование шрифтов

Если у Вас имеется параллельно установленная операционная система Windows, Вы можете скопировать используемые в ней шрифты.

Убедитесь, что локальный диск на котором установлена операционная система Windows примонтирован в вашей системе

Смысл операции заключается в том, чтоб скопировать шрифты в соответствующие каталоги, есть 2 варианта:

  • Каталог с наименование .fonts, находящемся в домашнем каталоге. При этом шрифты будут доступны только текущему пользователю.

  • Каталог /usr/share/fonts/truetype

Все шрифты операционной системы Windows хранятся в папке: C:\WINDOWS\Fonts, что бы скопировать шрифты можно воспользоваться терминалом и следующими командами:

sudo mkdir /usr/share/fonts/truetype/msttcorefonts
sudo cp /media/disk-1/WINDOWS/Fonts/*.* /usr/share/fonts/truetype/msttcorefonts
sudo defoma --reconfigure

Здесь подразумевается, что локальный диск с операционный системой Windows примонтирован в папку /media/disk-1

Так же скопировать шрифты можно вручную, используя Файловый менеджер nautilus.

Установка из репозитория

Если установленной операционной системы Windows у Вас нет, то можно просто установить набор стандартных шрифтов Microsoft из репозитория командой:

sudo apt-get install msttcorefonts

Чтоб система увидела шрифты, нужно выполнить следующую команду в консоли:

sudo fc-cache -fv

На этом инсталляция шрифтов завершена.

Настройка шрифтов

Шрифты настраиваются там же, где и темы gnome. Заходим в меню Система→Параметры→Внешний вид, затем закладка «Шрифты». В списке должны были появиться шрифты из операционной системы Windows.

Устанавливаем все шрифты (кроме моноширинного) — tahoma 8, отрисовка — монохромная. Нажимаем кнопку «Подробнее» и устанавливаем следующие параметры:

  • Разрешение — 96;

  • Сглаживание — нет;

  • Уточнение — полное;

  • Порядок — RGB.

На этом настройка шрифтов в системе закончена.
При необходимости Вы можете настроить шрифты для отдельных приложений.

Ссылки

Все мы хотим чтобы наша система выглядела идеально. Но не всегда поставляемые в дистрибутиве шрифты выглядят красиво, или хотя бы даже приемлемо. Вы можете очень просто установить и использовать любой понравившийся вам шрифт. С другой стороны, для работы с официальными документами в офисных приложениях нам нужны такие шрифты, как Times New Roman, Colibri и многие другие. Но эти шрифты разработаны корпорацией Microsoft и не могут быть включены по умолчанию в дистрибутив Linux.

В этой статье мы рассмотрим как происходит установка шрифтов в Linux на примере Ubuntu, как установить шрифт, который вам понравился, а также как поставить все шрифты от Microsoft, используемые в системе Windows.

Содержание статьи

  • Установка шрифтов в Linux

  • Установка шрифтов TrueType от Microsoft в Linux
  • Установка шрифтов ClearType от Microsoft в Linux
  • Установка других шрифтов Windows в Linux
  • Выводы

Шрифты можно найти на просторах интернета в различных форматах. В основном все шрифты можно поделить на два типа: растровые и векторные. Растровые шрифты быстрее и проще, но они не поддерживают масштабирование. В отличие от них векторные шрифты можно спокойно масштабировать без потери качества.

Растровые шрифты чаще всего распространяются в форматах PCF, BDF. А векторные шрифты: TrueType (ttf), Type1, Type3, OpenType, MetaFont.

Вообще говоря, при работе со шрифтами вы, скорее всего, не заметите разницы растровый это шрифт или векторный, да и встречаются чаще всего только векторные шрифты.

1. Установка вручную

Для хранения шрифтов в Linux используются две основных папки: /usr/share/fonts — для глобальных шрифтов и папка ~/.fonts для шрифтов доступных только для пользователя. Фактически установка шрифтов в Linux заключается в скачивании файла и копировании его в одну из этих папок.

Создайте папку ~/.fonts если она еще не существует:

mkdir ~/.fonts

А чтобы установить шрифт в Linux, просто копируем его в созданную папку. Например, для шрифта под названием AmazS.T.A.L.K.E.R.v.3.0.ttf команда будет выглядеть так:

cp ~/Загрузки/AmazS.T.A.L.K.E.R.v.3.0.ttf ~/.fonts

Аналогично можно скопировать шрифт файловым менеджером, только нужно использовать сочетание клавиш Ctrl+H, чтобы включить просмотр скрытых папок. Если шрифт поставляется в архиве, то его нужно распаковать и копировать уже сами файлы шрифта.

После того как все шрифты были скопированы нужно обновить кэш шрифтов системы:

fc-cache -f -v

Чтобы шрифт появился в нужной вам программе, её надо перезапустить после добавления шрифта и обновления кэша:

2. Установка с помощью пакетного менеджера

Также много шрифтов можно установить с помощью менеджера пакетов. Рассмотрим на примере Ubuntu, допустим, нам нужно установить шрифт terminus, сначала попробуем найти пакет с таким шрифтом:

sudo apt search terminus

Да, видим что он существует. Теперь устанавливаем:

sudo apt install xfonts-terminus

После этого кеш обновлять уже необязательно поскольку он был обновлен при установке пакета. Шрифты от Windows устанавливаются подобным образом, но мы рассмотрим эту тему немного подробнее.

Установка шрифтов TrueType от Microsoft в Linux

Microsoft выпустила пакет основных TrueType шрифтов для веб-сайтов в 1996 году. Эти шрифты получили очень либеральную лицензию, поэтому их может установить любой желающий. Microsoft отдала их, потому что хотела чтобы они были стандартны во всех браузерах. Этот проект был закрыт еще в 2002 году, но установить и использовать их можно до сих пор.

Пакет содержит такие шрифты: Andale Mono, Arial, Arial Black, Comic Sans MS, Courier New, Georgia, Impact, Times New Roman, Trebuchet, Verdana, и Webdings. Times New Roman был шрифтом по умолчанию для всех документов, пока не вышел в 2007 году Collibri.

Этот пакет можно очень просто установить в Ubuntu. К сожалению, установка шрифтов Ubuntu не может быть выполнена через центр приложений. Установка просто зависнет и не достигнет завершения потому, что нужно принять лицензию. Поэтому для установки используйте терминал.

В Ubuntu выполните в терминале вот такую команду:

sudo apt install ttf-mscorefonts-installer

Перед тем, как начнётся установка шрифтов, вам нужно принять лицензию ELUA. Когда появится запрос лицензионного соглашения используйте стрелки вверх / вниз чтобы прокрутить его. Затем нажмите кнопку Tab чтобы переместить курсор на позицию Yes и нажмите Enter.

Только после этого начнётся установка шрифтов:

Таким образом, вы принимаете лицензионное соглашение Microsoft. Программа установки загрузит шрифты в вашу систему и сделает их сразу доступными для всех приложений. В других дистрибутивах установка шрифтов Linux отличается только менеджером пакетов.

Установка шрифтов ClearType от Microsoft в Linux

Microsoft добавила группу новых ClearType шрифтов для Windows начиная с Windows Vista и Office 2007. Это такие шрифты, как: Constantia, Corbel, Calibri, Cambria, Candara, and Consolas. Collibri стал шрифтом по умолчанию в Office 2007.

Компания не выпустила эти шрифты доступными для всех, как они сделали с предыдущим пакетом. Тем не менее Microsoft позволяет загрузить эти шрифты как часть бесплатного приложения Microsoft PowerPoint Viewer 2007. Если у вас нет установленной Windows, вы можете воспользоваться скриптом, который загрузит это приложение, извлечет шесть нужных ClearType шрифтов и установит их в вашей системе. Скрипт устанавливает шрифты только для вашего пользователя, а не глобально в отличие от предыдущего пакета.

Проще всего все сделать через терминал. Команды очень просты и вам не нужно выполнять много действий. Установка шрифтов Winodws Ubuntu, выполняется простым копированием и вставкой.

Если вы не устанавливали TrueType шрифты, то необходимо выполнить такую команду для установки утилиты cabextract:

sudo apt install cabextract

Создайте папку с локальными шрифтами если еще не сделали этого:

mkdir ~/.fonts

Выполните команду, для загрузки и выполнения скрипта чтобы установить шрифт в linux:

wget -qO- http://plasmasturm.org/code/vistafonts-installer/vistafonts-installer | bash

Установка других шрифтов Windows в Linux

Вышеописанные способы установки шрифтов Windows, скорее всего, дадут все что вам нужно. Они установят большинство стандартных шрифтов Windows и Microsoft Office, таких, как True Type и ClearType. Но не все шрифты включены в эти пакеты. Tahoma не входит в пакет основных шрифтов TrueType, а Segoe UI и другие новые шрифты не включены в пакет ClearType.

Если у вас есть система Windows на том же компьютере, то установить эти шрифты очень просто. Например, если вы используете двойную загрузку, Windows рядом с Linux, то просто найдите в файловом менеджере раздел, на который установлена Windows. Раздел можно выбрать на боковой панели. Затем перейдите в папку Windows/fonts и вы увидите там все шрифты, установленные в вашей WIndows, в том числе стандартные.

В Ubuntu вы можете дважды щелкнуть по файлу шрифта и в открывшимся окне нажать кнопку Установить:

Так вы можете установить шрифт Linux только для текущего пользователя. Таким образом, вы можете очень быстро установить любые шрифты из Windows, в том числе Tahoma и Segoe UI. Можно даже не использовать предыдущие команды и скрипты и потянуть Times New Roman и Collibri вот таким вот способом.

Если Windows на другом компьютере, вы можете скопировать нужные шрифты на внешний носитель и установить их таким же образом, или просто скопировать в папку ~/.fonts.

Выводы

Теперь вы знаете как установить шрифты в Linux и сможете настроить свою систему так как нужно. Со шрифтами в документах все еще более просто. В Ubuntu да и в других дистрибутивах используется набор свободных шрифтов Red Hat, которые были разработаны для замены  Arial, Arial Narrow, Times New Roman и Courier New. Они имеют ту же ширину, что и шрифты от Microsoft. Поэтому если документ составлен с помощью Times New Roman, то в офисном пакете будет использоваться альтернативный шрифт из свободных шрифтов той же ширины, поэтому структура документа не будет нарушена. Поэтому устанавливать шрифты от Microsoft только ради просмотра документов совсем необязательно. Но выглядят они совсем не так как оригинал. Так что если вы хотите получить наибольшую совместимость с Microsoft Office желательно все же установить эти шрифты.

Microsoft Fonts are a collection of widely-used TrueType fonts that are essential for ensuring document compatibility, particularly with Microsoft Office files. Fonts like Arial, Times New Roman, and Verdana are often required to correctly display and print documents created on Windows systems. Having these fonts installed on Ubuntu ensures that documents, presentations, and web pages appear as intended without any formatting issues. The package ttf-mscorefonts-installer provides these fonts in a simple, easy-to-install format for Ubuntu users.

On Ubuntu 24.04, 22.04, or 20.04, you can install Microsoft Fonts via the Ubuntu default repository by installing the ttf-mscorefonts-installer package. This package downloads and installs key Microsoft TrueType fonts, ensuring that your system is equipped to handle documents and websites that rely on these fonts. The installation process is straightforward and integrates well with Ubuntu’s package management system, making it easy to keep these fonts updated. This guide will walk you through the steps to install Microsoft Fonts on your Ubuntu system.

Update Ubuntu Before Microsoft Fonts Installation

Before installing the Microsoft Fonts package, update your system fully by running the following command in the terminal:

sudo apt update && sudo apt upgrade

Install Microsoft Fonts via APT Command

The “ttf-mscorefonts-installer” package, which includes a collection of popular Microsoft Fonts, is readily available in Ubuntu’s default repository. Use the following command to begin the installation:

sudo apt install ttf-mscorefonts-installer

You will encounter a few prompts when installing the “ttf-mscorefonts-installer” package. The first prompt lets you read and accept Microsoft Fonts’ End User License Agreement (EULA). Review and understand this agreement before proceeding with the installation, ensuring you agree with its terms.

Important Notice Before Installing Microsoft Fonts on Ubuntu

Important notice to read before installing Microsoft Fonts on Ubuntu

Press the <TAB> key, select <Ok>, and press the <ENTER KEY> to proceed.

After reading the EULA agreement, a prompt will ask you to accept the license terms by clicking a Yes or No button. You must accept the EULA agreement to install the Microsoft Fonts package and use the fonts. If you do not accept, the installation will not continue.

Agreement to Microsoft EULA During Microsoft Fonts Installation on Ubuntu

Agreement to Microsoft EULA during Microsoft Fonts installation on Ubuntu

Press the <TAB> key, select <Ok>, and press the <ENTER KEY> to proceed.

After completing the installation, the following output will appear in your terminal.

Terminal output confirming Microsoft Fonts installation on Ubuntu

Terminal output confirming Microsoft Fonts installation on Ubuntu

This message verifies the fonts’ readiness in any program supporting TrueType fonts.

Verify Microsoft Fonts Installation

You may also wish to confirm this by examining the installed fonts via the Fonts application GUI, which is accessible through the outlined path.

Activities > Show Applications > Fonts.
Opening Font Manager on Ubuntu

Opening the Font Manager application on Ubuntu

Opening the Fonts application GUI lets you see all system-installed fonts, including newly added Microsoft fonts like Arial and New Times Roman. This provides a visual representation of available fonts.

Confirming Microsoft Fonts in Font Manager on Ubuntu

Confirming the installation of Microsoft Fonts in Font Manager on Ubuntu

Additional Learning: Remove Microsoft Fonts From Ubuntu

If you no longer wish to have the Microsoft fonts on your system and want to remove them, you can use the following command in the terminal.

sudo apt autoremove ttf-mscorefonts-installer --purge

This command will remove the package “ttf-mscorefonts-installer” and all the Microsoft fonts installed.

By installing the ttf-mscorefonts-installer package from the Ubuntu default repository, you ensure that your Ubuntu system is fully compatible with documents and websites that rely on Microsoft’s TrueType fonts. This simple installation process provides access to essential fonts like Arial, Times New Roman, and Verdana, improving the readability and formatting of various content types. Regular updates through Ubuntu’s package management system will keep these fonts current, allowing for seamless document viewing and editing on Ubuntu.

In this tutorial, we will show you how to install Microsoft Fonts on Ubuntu 24.04 LTS. Fonts play a crucial role in document formatting and design, ensuring that your content looks professional and visually appealing. While Ubuntu, a popular Linux distribution, comes with a wide variety of fonts pre-installed, it does not include Microsoft fonts by default due to licensing restrictions. However, installing Microsoft fonts on Ubuntu 24.04 LTS is a straightforward process that can greatly enhance your system’s compatibility with documents created on Windows machines.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Microsoft Fonts on Ubuntu 24.04 (Noble Numbat). You can follow the same instructions for Ubuntu 22.04 and any other Debian-based distribution like Linux Mint, Elementary OS, Pop!_OS, and more as well.

Prerequisites

  • A server running one of the following operating systems: Ubuntu and any other Debian-based distribution like Linux Mint.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies.
  • An Ubuntu 24.04 system with root access or a user with sudo privileges.

Step 1. Update System and Repositories.

To begin, it is essential to keep your Ubuntu system up to date. Regular updates ensure that you have access to the latest features, bug fixes, and security patches. Open the terminal and run the following commands to update your system:

sudo apt update
sudo apt upgrade

These commands will refresh the package list and upgrade any outdated packages to their latest versions. This step is crucial to avoid potential compatibility issues during the font installation process.

Step 2. Enable Multiverse Repository.

The Microsoft fonts package is available in the multiverse repository, which is not enabled by default in Ubuntu. To enable the multiverse repository, use the following commands:

sudo add-apt-repository multiverse
sudo apt update

The first command adds the multiverse repository to your system, while the second command updates the package list to include the newly added repository. Enabling the multiverse repository grants you access to a wider range of software packages, including the Microsoft fonts package.

Step 3. Installing ttf-mscorefonts-installer Package.

With the multiverse repository enabled, you can now install the ttf-mscorefonts-installer package, which contains the Microsoft fonts. Run the following command in the terminal:

sudo apt install ttf-mscorefonts-installer

During the installation process, you will be prompted to accept the End User License Agreement (EULA) for the Microsoft fonts. Use the arrow keys to navigate to the “Yes” option and press Enter to accept the EULA. The installation will then proceed, downloading and installing the Microsoft fonts on your Ubuntu system.

After the installation is complete, it’s a good practice to verify that the Microsoft fonts are installed correctly. You can do this by using the following command:

fc-list | grep "Microsoft"

This command lists all the installed fonts and filters the output to display only the Microsoft fonts. If the installation was successful, you should see a list of Microsoft font names, such as Arial, Times New Roman, and Verdana.

If the installation fails or the Microsoft fonts are not displayed in the font list, try reinstalling the ttf-mscorefonts-installer package using the following command:

sudo apt install --reinstall ttf-mscorefonts-installer

To ensure that applications can detect and use the newly installed Microsoft fonts, you need to update the font cache. Run the following command in the terminal:

sudo fc-cache -f -v

This command forcefully updates the font cache and displays verbose output, confirming that the cache has been successfully updated. Updating the font cache is crucial for applications to recognize and utilize Microsoft fonts.

Step 4. Accessing Microsoft Fonts in Applications.

Now that the Microsoft fonts are installed and the font cache is updated, you can start using these fonts in your favorite applications. Popular applications like LibreOffice, GIMP, and Inkscape will automatically detect the new fonts, making them available for use in your documents and designs.

Install Microsoft Fonts on Ubuntu 24.04 LTS

Congratulations! You have successfully installed Microsoft Fonts. Thanks for using this tutorial for installing Microsoft Fonts on the Ubuntu 24.04 LTS system. For additional help or useful information, we recommend you check the Microsoft website.

VPS Manage Service Offer

If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.

Warp Terminal

If you open some Microsoft documents in LibreOffice on Linux, you’ll notice that the fonts look a bit different. You’ll also notice that you cannot find common fonts like Times New Roman, Arial etc.

Don’t worry. I’ll show you how to install these fonts in Ubuntu and other Ubuntu-based Linux distributions.

But before that, let me tell you why these fonts are not available by default.

Install Microsoft TrueType Fonts on Ubuntu-based Distributions

Install Microsoft TrueType Fonts on Ubuntu-based Distributions

Why are Microsoft fonts not installed by default in Linux?

Times New Roman, Arial, and other such fonts are owned by Microsoft, and they are not open source. Many Linux distributions don’t provide proprietary software by default to avoid licensing issues. This is why Ubuntu and other Linux distributions use open-source fonts “Liberation fonts” to substitute Microsoft fonts by default.

The Liberation Fonts were created by Red Hat to substitute Arial, Arial Narrow, Times New Roman and Courier New as their width is the same. When you open a document written in Times New Roman, the equivalent Liberation Font will be used to keep the document uninterrupted.

However, Liberation fonts are not identical to Microsoft’s fonts and in some cases, you may need to use Arial or Times New Roman. A very common scenario is that Microsoft’s fonts are the only option in schools, universities and other public and private organizations. They require you to submit the documents in one of those fonts.

Good thing is that you can install the Microsoft fonts on Ubuntu and other distributions easily. This way, you will be able to increase the compatibility with LibreOffice and have the freedom to choose open-source office software.

Installing Microsoft fonts on Ubuntu-based Linux distributions

You can install new fonts in Ubuntu by downloading them on your own. But since Microsoft fonts are very popular (and are provided free of cost), Ubuntu provides an easy way of installing them.

Be aware that despite Microsoft having released its core fonts free of charge, the usage of the fonts is restricted in other operating systems. You’ll have to read and accept EULA (End User License Agreement) before installing Microsoft fonts in Ubuntu.

These fonts are available in the multiverse repositories. Usually, they are enabled by default, but you should make sure it is enabled:

sudo add-apt-repository multiverse

After that, you can update your Ubuntu repository cache and install the Microsoft fonts like this:

sudo apt update && sudo apt install ttf-mscorefonts-installer

Press the tab to select OK and press Enter when Microsoft’s End user agreement appears.

Accepting EULA While Installing Microsoft Fonts in Ubuntu

Press the tab key to highlight the selection

Click Yes to accept Microsoft’s agreement:

Accepting EULA While Installing Microsoft Fonts in Ubuntu

Use the tab key to select Yes and then press Enter

When the installation is done, you should update the font cache using the command below:

sudo fc-cache -f -v
Update the font cache in terminal

Update the font cache

If you open LibreOffice now, you’ll see the Microsoft TrueType fonts.

Times New Roman Font is used for text format in Libre Office

TrueType Fonts available in Libre Office

In case you accidentally reject the license agreement, you can reinstall the installer with this command:

sudo apt install --reinstall ttf-mscorefonts-installer

Microsoft TrueType fonts are also available via the Ubuntu Restricted Extras package that contains other proprietary media codecs to play files like MP3 etc.

Don’t underestimate proprietary fonts

You may think, what the big deal with fonts is? After all, it’s just a font, not a crucial piece of software, right?

But did you know that for years, Netflix paid millions of dollars for the proprietary font it used? In the end, they created their own custom fonts and that saved them a considerable amount of money.

By the way, you can easily install new fonts in Ubuntu. This tutorial will help you with that.

How to Install New Fonts in Ubuntu and Other Linux Distributions

Ubuntu does come with a bunch of fonts installed by default in it. But at times you might not be satisfied with the available fonts. If that’s the case, you can easily install additional fonts in Ubuntu, or any other Linux system such as Linux Mint. In this tutorial,

It’s FOSSAbhishek Prakash

Now you know about the fonts, what about installing some Windows-only apps in Linux?

Or do you want to try some open-source alternatives to MS Office?

More productivity tutorials are down the line; leave your comments below and subscribe to our social media for more!

About the author

Dimitrios

Dimitrios

Dimitrios is an MSc Mechanical Engineer but a Linux enthusiast in heart. His machines are powered by Arch Linux but curiosity drives him to constantly test other distros. Challenge is part of his per

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как вывести значок пуск на панель задач windows 8
  • Winscp windows to linux
  • Winaero tweaker на русском для windows 10 русификатор
  • Возможности подключения устройств на платформе windows mobile 2003
  • Как запустить bash файл на windows