Mastering fc-list: How to Find and List Fonts in Ubuntu Linux

Overview

Managing typography on an Ubuntu desktop or server requires dependable tools for inspecting installed typefaces. This walkthrough covers the capabilities of the fc-list utility, illustrating practical terminal techniques to query fonts, extract isolated attributes, filter by target languages, and verify custom font additions.

Installing fontconfig and Exploring fc-list Fundamentals

Before auditing system typefaces, ensure that the core Fontconfig toolset along with foundational fonts are present on your workstation.

Install fontconfig and DejaVu fonts via apt

Verify that the binary sits within the default executable search path:

Locate fc-list binary path

When invoked without parameters, fc-list enumerates all indexed font files, reporting their disk locations, family classifications, and stylistic variants. Truncating the stream with head -n 10 keeps the initial inspection manageable.
⚙️ [Key Command Flags]

-v : Emits a comprehensive listing of every font attribute, spanning glyph coverage, charsets, and weight metrics.
-f : Applies formatted output strings to selectively present chosen properties.
-q : Operates silently without terminal output, returning zero or non-zero exit statuses to signal matches.
-b : Produces an abbreviated summary of primary font characteristics.
-V : Displays software release details before exiting.
-h : Prints command-line usage syntax and help options.

Display top 10 font entries using fc-list

Filtering by Font Families and Filesystem Locations

System queries often call for isolating font family names while suppressing noisy disk paths and metadata. Appending : family after the colon delimiter achieves this clean view.

Extract font family names only

Conversely, when diagnosing missing dependencies or path issues, you can query solely the physical disk targets by requesting the file attribute.

List absolute font file paths

Combining multiple attributes requires only space-separated keys following the colon. Running the next pipeline pairs file paths with their corresponding typographic families side-by-side.

Pair font paths with family names

To isolate a specific typeface across the entire repository regardless of casing, piping output directly into grep -i provides an immediate, targeted filter.

Search for DejaVu typefaces with grep

Searching Fonts by Weight, Style, and Supported Locales

Graphic design and UI configuration workflows frequently demand specific font variants. By querying both family and style, administrators can pinpoint bold weights across installed families.

Isolate bold typographic styles

Locale-aware rendering relies on fonts providing targeted glyph sets. Passing the :lang=en predicate ensures the returned families explicitly declare English character support.

Filter fonts supporting English locales

Similarly, verifying international language coverage—such as Korean—requires passing the respective language tag. An empty output signals that suitable regional fonts are absent from the operating system.

Check Korean glyph support across installed fonts

Manually Installing Custom Fonts and Rebuilding the Font Cache

To integrate custom TTF or OTF assets without system-wide privileges, initialize a user-scoped font repository inside your home directory.

Create user font directory

For verification purposes, transfer an existing TrueType asset into the newly provisioned directory under an alternate alias.

Copy test TrueType font into personal storage

The operating system requires an explicit index refresh before user applications can detect added assets. Running fc-cache with forced regeneration (-f) and verbose reporting (-v) indexes the target tree.

Force update Fontconfig cache

Lastly, validate that Fontconfig has cataloged the manual addition by querying fc-list for your custom alias.

Confirm new custom font registration

Leveraging fc-list and related Fontconfig utilities grants precise control over Linux typographic assets, making font troubleshooting and asset verification predictable across any environment.