1 /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef GFX_FONT_VARIATIONS_H
8 #define GFX_FONT_VARIATIONS_H
10 #include "mozilla/gfx/FontVariation.h"
14 typedef mozilla::gfx::FontVariation gfxFontVariation
;
16 // Structure that describes a single axis of variation in an
17 // OpenType Variation or Multiple-Master font.
18 struct gfxFontVariationAxis
{
20 nsCString mName
; // may be empty
26 // A single <axis, value> pair that may be applied to a variation font.
27 struct gfxFontVariationValue
{
32 // Structure that describes a named instance of a variation font:
33 // a name like "Light Condensed" or "Black Ultra Extended" etc.,
34 // and a list of the corresponding <variation-axis, value> pairs
36 struct gfxFontVariationInstance
{
38 CopyableTArray
<gfxFontVariationValue
> mValues
;