Difference between revisions of "Microsoft fonts"

From ArchWiki
Jump to: navigation, search
m
 
(36 intermediate revisions by 22 users not shown)
Line 1: Line 1:
 
[[Category:Fonts]]
 
[[Category:Fonts]]
[[Category:Graphics and desktop publishing]]
+
[[ar:Microsoft fonts]]
[[ja:MS Fonts]]
+
[[ja:MS フォント]]
[[sr:MS Fonts]]
+
[[ru:Microsoft fonts]]
[[zh-CN:MS Fonts]]
+
[[sr:Microsoft fonts]]
{{Article summary start}}
+
[[zh-cn:Microsoft fonts]]
{{Article summary text|Installing TrueType Microsoft fonts and emulating Windows' font rendering}}
+
{{Related articles start}}
{{Article summary heading|Related}}
+
{{Related|Metric-compatible fonts}}
{{Article summary wiki|Fonts}}: Information on adding fonts and font recommendations
+
{{Related|Fonts}}
{{Article summary wiki|Font Configuration}}: Font setup and beautification
+
{{Related|Font configuration}}
{{Article summary wiki|Java Runtime Environment Fonts}}: Fonts specific to Sun's Java virtual machine
+
{{Related|Infinality}}
{{Article summary end}}
+
{{Related|Java Runtime Environment Fonts}}
 +
{{Related articles end}}
 +
This article explains how to install TrueType Microsoft fonts and emulate Windows' font rendering.
  
==Installation==
+
{{Tip|See [[Metric-compatible fonts]] for alternatives available in the [[official repositories]].}}
===Current Packages===
+
 
{{Note|These packages do '''require access to a Windows 7/8 and/or a Office 2007''' setup or installation media, consult corresponding [[PKGBUILD]] for details.}}
+
== Installation ==
Available in the [[Arch User Repository|AUR]]:
+
 
*{{AUR|ttf-win7-fonts}} — Windows 7 fonts
+
=== Using fonts from a Windows partition ===
*{{AUR|ttf-office-2007-fonts}} — Microsoft Office 2007 fonts
+
 
*{{AUR|ttf-ms-win8}} — Windows 8 fonts
+
If there is a Windows partition mounted, its fonts can be used by linking to them.
 +
 
 +
''For example, if the Windows C:\ partition is mounted at {{ic|/windows}}:''
 +
 
 +
# ln -s /windows/Windows/Fonts /usr/share/fonts/WindowsFonts
 +
 
 +
Then regenerate the fontconfig cache:
 +
 
 +
# fc-cache
 +
 
 +
Alternatively, copy the Windows fonts to {{ic|/usr/share/fonts}}:
 +
 
 +
# mkdir /usr/share/fonts/WindowsFonts
 +
# cp /windows/Windows/Fonts/* /usr/share/fonts/WindowsFonts
 +
# chmod 755 /usr/share/fonts/WindowsFonts/*
 +
 
 +
Then regenerate the fontconfig cache:
 +
 
 +
# fc-cache
 +
 
 +
=== Current packages ===
 +
 
 +
{{Note|These packages do '''require access to a Windows 7/8/10 and/or a Office 2007''' setup or installation media, consult corresponding [[PKGBUILD]] for details.}}
 +
* {{AUR|ttf-office-2007-fonts}} — Office 2007 fonts
 +
* {{AUR|ttf-win7-fonts}} — Windows 7 fonts
 +
* {{AUR|ttf-ms-win8}} — Windows 8.1 fonts
 +
* {{AUR|ttf-ms-win10}} — Windows 10 fonts
 +
 
 +
=== Legacy packages ===
  
===Legacy Packages===
 
 
{{Note|The fonts provided by these packages are out-of-date and are missing modern hinting instructions and the full character sets.  It is recommended to use the above packages.}}
 
{{Note|The fonts provided by these packages are out-of-date and are missing modern hinting instructions and the full character sets.  It is recommended to use the above packages.}}
{{AUR|ttf-ms-fonts}} is available in the [[Arch User Repository|AUR]].
 
  
According to [http://web.archive.org/web/20020227054122/www.microsoft.com/typography/fontpack/eula.htm original Microsoft's End User License Agreement], there are ''some'' legal limitations when using the fonts.
+
{{AUR|ttf-ms-fonts}} includes:
 +
 
 +
* [[Wikipedia:Andalé Mono|Andalé Mono]]
 +
* [[Wikipedia:Arial|Arial]]
 +
* [[Wikipedia:Arial Black|Arial Black]]
 +
* [[Wikipedia:Comic Sans|Comic Sans]]
 +
* [[Wikipedia:Courier New|Courier New]]
 +
* [[Wikipedia:Georgia (typeface)|Georgia]]
 +
* [[Wikipedia:Impact (typeface)|Impact]]
 +
* [[Wikipedia:Lucida Sans|Lucida Sans]]
 +
* [[Wikipedia:Lucida Console|Lucida Console]]
 +
* [[Wikipedia:Microsoft Sans Serif|Microsoft Sans Serif]]
 +
* <s>[[Wikipedia:Symbol (typeface)|Symbol]]</s>
 +
* [[Wikipedia:Times New Roman|Times New Roman]]
 +
* [[Wikipedia:Trebuchet MS|Trebuchet]]
 +
* [[Wikipedia:Verdana|Verdana]]
 +
* [[Wikipedia:Webdings|Webdings]]
 +
* [[Wikipedia:Wingdings|Wingdings]]
 +
 
 +
{{Warning|According to [http://web.archive.org/web/20020227054122/www.microsoft.com/typography/fontpack/eula.htm original Microsoft's End User License Agreement], there are ''some'' legal limitations when using the above fonts.}}
 +
 
 +
You can also obtain {{AUR|ttf-tahoma}} which, as you might expect, contains [[Wikipedia:Tahoma (typeface)|Tahoma]].
 +
 
 +
{{AUR|ttf-vista-fonts}} includes:
 +
 
 +
* [[Wikipedia:Calibri|Calibri]]
 +
* [[Wikipedia:Cambria (typeface)|Cambria]]
 +
* [[Wikipedia:Candara|Candara]]
 +
* [[Wikipedia:Consolas|Consolas]]
 +
* [[Wikipedia:Constantia (typeface)|Constantia]]
 +
* [[Wikipedia:Corbel (typeface)|Corbel]]
 +
 
 +
== Fontconfig rules useful for MS Fonts ==
 +
 
 +
Often websites specify the fonts using generic names (helvetica, courier, times or times new roman) a rule in fontconfig replaces this fonts with (ugly) free fonts:
 +
/etc/fonts/conf.d/30-metric-aliases-free.conf
 +
to make full use of the MS fonts it is necessary to create a rule mapping those generic names to MS specific fonts contained in the various packages above:
 +
 
 +
<?xml version="1.0"?>
 +
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 +
<fontconfig>
 +
<!-- Map generics to MS specifics -->
 +
        <!-- PostScript -->
 +
        <alias binding="same">
 +
          <family>Helvetica</family>
 +
          <accept>
 +
          <family>Arial</family>
 +
          </accept>
 +
        </alias>
 +
        <alias binding="same">
 +
          <family>Times</family>
 +
          <accept>
 +
          <family>Times New Roman</family>
 +
          </accept>
 +
        </alias>
 +
        <alias binding="same">
 +
          <family>Courier</family>
 +
          <accept>
 +
          <family>Courier New</family>
 +
          </accept>
 +
        </alias>
 +
</fontconfig>
 +
 
 +
It is also useful to associate serif,sans-serif,monospace fonts in your favourite browser to MS fonts.
 +
 
 +
== Windows 7 ==
 +
 
 +
Use [[Infinality|Infinality's patched freetype2 package]], and use the Windows 7 profile in the provided {{ic|local.conf}}.
 +
 
 +
== Windows 8 ==
 +
 
 +
The {{AUR|ttf-ms-win8}} split package is intended as a more up-to-date replacement for
 +
{{AUR|ttf-ms-fonts}}, {{AUR|ttf-vista-fonts}} and {{AUR|ttf-win7-fonts}}.
  
The package includes:
+
Although it provides newer versions of the fonts, it '''cannot automatically download the fonts''' due
 +
to license issues .
  
*[[Wikipedia:Andalé Mono|Andalé Mono]]
+
{{Note|usage of Microsoft fonts outside running Windows system is prohibited by EULA (although in certain countries EULA is invalid). Please consult Microsoft license before using fonts.}}
*[[Wikipedia:Arial|Arial]]
+
*[[Wikipedia:Arial Black|Arial Black]]
+
*[[Wikipedia:Comic Sans|Comic Sans]]
+
*[[Wikipedia:Courier New|Courier New]]
+
*[[Wikipedia:Georgia (typeface)|Georgia]]
+
*[[Wikipedia:Impact (typeface)|Impact]]
+
*[[Wikipedia:Lucida Sans|Lucida Sans]]
+
*[[Wikipedia:Lucida Console|Lucida Console]]
+
*[[Wikipedia:Microsoft Sans Serif|Microsoft Sans Serif]]
+
*<s>[[Wikipedia:Symbol (typeface)|Symbol]]</s>
+
*[[Wikipedia:Times New Roman|Times New Roman]]
+
*[[Wikipedia:Trebuchet MS|Trebuchet]]
+
*[[Wikipedia:Verdana|Verdana]]
+
*[[Wikipedia:Webdings|Webdings]]
+
*[[Wikipedia:Wingdings|Wingdings]]
+
  
You can also obtain {{AUR|ttf-tahoma}} or {{AUR|ttf-microsoft-tahoma}} from the AUR, which as you might expect contains [[Wikipedia:Tahoma (typeface)|Tahoma]].
+
You can acquire fonts from an installed and fully updated Windows 8.1 system. Any edition of ''Windows 8.1 build '''Windows 8.1 6.3.9600.17238''''' will work.
  
{{AUR|ttf-vista-fonts}} is also available in the AUR and include:  
+
On the installed Windows 8.1 system fonts are usually located in {{ic|[http://technet.microsoft.com/en-us/library/hh825266.aspx %WINDIR%]\Fonts}} and license file is {{ic|[http://technet.microsoft.com/en-us/library/hh825266.aspx %SYSTEM32%]\license.rtf}}.
  
*[[Wikipedia:Calibri|Calibri]]
+
You need the files listed in the {{ic|1=source=()}} array. Place them in the same directory as this [[PKGBUILD]] file, then run [[makepkg]].
*[[Wikipedia:Cambria (typeface)|Cambria]]
+
*[[Wikipedia:Candara|Candara]]
+
*[[Wikipedia:Consolas|Consolas]]
+
*[[Wikipedia:Constantia (typeface)|Constantia]]
+
*[[Wikipedia:Corbel (typeface)|Corbel]]
+
  
==Sharp fonts resembling Windows XP==
+
{{ic|makepkg --pkg ttf-ms-win8}} will make just the Windows 8.1 core fonts package which should cover even more than {{AUR|ttf-ms-fonts}}.
A complete guide on how to make the MS Fonts look as in Windows XP is found at http://www.sharpfonts.co.cc/ (site down, try {{AUR|sharpfonts}} in the [[Arch User Repository|AUR]]). In short, install the fonts as described above and use the author's modified XML files.
+
  
==Smooth fonts resembling Windows 7==
+
Fonts are best viewed with [[Infinality]]. Infinality offers great font rendering and customization.
Use [[Font Configuration#Infinality|Infinality's patched freetype2 package]], and use the Windows 7 profile in the provided {{ic|local.conf}}.
+

Latest revision as of 16:48, 15 June 2016

This article explains how to install TrueType Microsoft fonts and emulate Windows' font rendering.

Tip: See Metric-compatible fonts for alternatives available in the official repositories.

Installation

Using fonts from a Windows partition

If there is a Windows partition mounted, its fonts can be used by linking to them.

For example, if the Windows C:\ partition is mounted at /windows:

# ln -s /windows/Windows/Fonts /usr/share/fonts/WindowsFonts

Then regenerate the fontconfig cache:

# fc-cache

Alternatively, copy the Windows fonts to /usr/share/fonts:

# mkdir /usr/share/fonts/WindowsFonts
# cp /windows/Windows/Fonts/* /usr/share/fonts/WindowsFonts
# chmod 755 /usr/share/fonts/WindowsFonts/*

Then regenerate the fontconfig cache:

# fc-cache

Current packages

Note: These packages do require access to a Windows 7/8/10 and/or a Office 2007 setup or installation media, consult corresponding PKGBUILD for details.

Legacy packages

Note: The fonts provided by these packages are out-of-date and are missing modern hinting instructions and the full character sets. It is recommended to use the above packages.

ttf-ms-fontsAUR includes:

Warning: According to original Microsoft's End User License Agreement, there are some legal limitations when using the above fonts.

You can also obtain ttf-tahomaAUR which, as you might expect, contains Tahoma.

ttf-vista-fontsAUR includes:

Fontconfig rules useful for MS Fonts

Often websites specify the fonts using generic names (helvetica, courier, times or times new roman) a rule in fontconfig replaces this fonts with (ugly) free fonts:

/etc/fonts/conf.d/30-metric-aliases-free.conf

to make full use of the MS fonts it is necessary to create a rule mapping those generic names to MS specific fonts contained in the various packages above:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
       <alias binding="same">
         <family>Helvetica</family>
         <accept>
         <family>Arial</family>
         </accept>
       </alias>
       <alias binding="same">
         <family>Times</family>
         <accept>
         <family>Times New Roman</family>
         </accept>
       </alias>
       <alias binding="same">
         <family>Courier</family>
         <accept>
         <family>Courier New</family>
         </accept>
       </alias>
</fontconfig>

It is also useful to associate serif,sans-serif,monospace fonts in your favourite browser to MS fonts.

Windows 7

Use Infinality's patched freetype2 package, and use the Windows 7 profile in the provided local.conf.

Windows 8

The ttf-ms-win8AUR split package is intended as a more up-to-date replacement for ttf-ms-fontsAUR, ttf-vista-fontsAUR and ttf-win7-fontsAUR.

Although it provides newer versions of the fonts, it cannot automatically download the fonts due to license issues .

Note: usage of Microsoft fonts outside running Windows system is prohibited by EULA (although in certain countries EULA is invalid). Please consult Microsoft license before using fonts.

You can acquire fonts from an installed and fully updated Windows 8.1 system. Any edition of Windows 8.1 build Windows 8.1 6.3.9600.17238 will work.

On the installed Windows 8.1 system fonts are usually located in %WINDIR%\Fonts and license file is %SYSTEM32%\license.rtf.

You need the files listed in the source=() array. Place them in the same directory as this PKGBUILD file, then run makepkg.

makepkg --pkg ttf-ms-win8 will make just the Windows 8.1 core fonts package which should cover even more than ttf-ms-fontsAUR.

Fonts are best viewed with Infinality. Infinality offers great font rendering and customization.