Add unique font name lookup table implementation and tests

Preparation for hooking up @font-face { src: local() } matching in
Blink. For now adding an implementation that extracts full font name and
postscript name from fonts given a set of directories to scan.

Includes unit tests for basic functionality, compatibility with TrueType
collections and for resilience against corrupted font files.

For the general design see

Bug: 867877
Change-Id: I5f557d99a5be49671bd9aa13c1712b6f8a2aa96b
Reviewed-by: Jochen Eisinger <>
Reviewed-by: David Turner <>
Reviewed-by: Emil A Eklund <>
Commit-Queue: Dominik Röttsches <>
Cr-Commit-Position: refs/heads/master@{#579785}
14 files changed