README

NAME

NotoFonts-OT - Provides an embedded collection of 10 of Google's Noto OpenType fonts for use in Raku PDF creation.

The 10 fonts closely match 10 of the original Adobe Type 1 fonts but in OTF format, and thousands of glyphs instead of only 256.

Tables 1 and 2 below list several ways to refer to the desired font and get it in one of two forms: a PDF font object or a font path to its location.

The fonts are accessed through exported subroutines as illustrated below.

Note that there are many more fonts available, and more weight variations of the 10 fonts may be added here later. Please file an issue if you are interested.

SYNOPSIS

use Test;
use PDF::Font::Loader::HarfBuzz;
use PDF::Font::Loader :load-font;
use PDF::Content;
use PDF::Content::FontObj;
use PDF::Lite;

use NotoFonts-OT;

# Use the provided subroutines to create individual font objects
# of the desired font face:

# Select the Noto font 'NotoSerif-Regular' to be loaded
# as a PDF font object to be used to print text on a PDF page.
# Use a code reference from Table 1:
my $font = get-loaded-font 1;
isa-ok $font, PDF::Content::FontObj;
# OUTPUT:
ok 1 - The object is-a 'PDF::Content::FontObj'
1..1

That font object, $font, should be able to be used by all the Raku PDF modules requiring a font object. File an issue if you find a problem.

DESCRIPTION

The following tables show the font family name, weight, and slant of the 10 fonts approximating the original Adobe Type 1 fonts. The desired font can be selected by using the appropriate Name, Code, Code2, or Reference Number as the input to subroutine get-loaded-font which returns a PDF font object.

One can also get the font path by using subroutine get-font-path.

Table 1

Table 2

Font sources

The /resouurces/fonts directory contains the embedded fonts. The /resouurces/text directory contains a description of their original source and a list of their sha256sums for authentication. It also contains a file describing the SIL Open Font License (OFL) for the included fonts and a file with a large amount of Frequently Asked Questions (FAQ) about the OFL.

In the /sbin directory is a Raku script to calculate sha256sums of files.

Package App::FontSample

Use that Raku package to produce font samples in various formats.

AUTHOR

Tom Browder [email protected]

COPYRIGHT AND LICENSE

Ā© 2026 Tom Browder

This library is free software; you may redistribute it or modify it under the Artistic License 2.0.

NotoFonts-OT v0.1.0

Provides routines for using the Google Noto fonts in OpenType format

Authors

  • Tom Browder

License

Artistic-2.0

Dependencies

Digest::SHA256::NativeMacOS::NativeLibOO::Monitors:ver<1.1.4>PDF::ContentFontConfigPDF::Content::FontObjPDF::Font::LoaderPDF::Font::Loader::HarfBuzzFont::FreeType:ver<0.5.16>PDF::Lite

Test Dependencies

Provides

  • NotoFonts-OT
  • NotoFonts-OT::Download
  • NotoFonts-OT::FontPaths
  • NotoFonts-OT::Registry
  • NotoFonts-OT::Vars

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.