tree: a0287869eb5f37f54d7fad32f9f29d9d147b022f [path history] [tgz]
  1. BUILD.gn
  2. DEPS
  3. DIR_METADATA
  4. font_access.cc
  5. font_access.h
  6. font_data.idl
  7. font_metadata.cc
  8. font_metadata.h
  9. OWNERS
  10. query_options.idl
  11. README.md
  12. window_font_access.idl
third_party/blink/renderer/modules/font_access/README.md

Font Access API

This directory contains the renderer-side implementation of Font Access API.

Related directories

//content/browser/font_access/ contains the browser-side implementation, and blink/public/mojom/font_access contains the mojom interface for this API.

APIs In this directory

It consists of the following parts:

  • FontAccess: A supplement to window that exposes an operation to access local fonts. FontAccess maintains a mojo connection with browser-side, and is responsible for handling errors, and optionally applying query filters provided by QueryOptions.

  • FontData: Implemented as FontMetadata.cc, FontData represents data about a single font installed on the system. Currently, it provides basic information such as postscript name, full name, family and style; addiitonally, it exposes a method blob() for accessing additional font blob data via Blink's FontCache. (See more details here)