gfx/2d/FontVariation.h
author Edouard Oger <eoger@fastmail.com>
Thu, 22 Feb 2018 16:30:39 +0800
changeset 459331 157f93b585b18e810942d3fc421b8dc9327b4419
parent 439782 5f74d262924171a8fa0b4483a64f4cac34c4c9b8
child 484788 49512fc963b65fe99da12f73f1311eb54515ecb5
permissions -rw-r--r--
Bug 1439777 p2 - Remove weave:ui:* related code. r=markh,tcsc MozReview-Commit-ID: D1H36YeiJCS

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef MOZILLA_GFX_FONTVARIATION_H_
#define MOZILLA_GFX_FONTVARIATION_H_

namespace mozilla {
namespace gfx {

// An OpenType variation tag and value pair
struct FontVariation
{
  uint32_t mTag;
  float mValue;

  bool operator==(const FontVariation& aOther) const {
    return mTag == aOther.mTag && mValue == aOther.mValue;
  }
};

} // namespace gfx
} // namespace mozilla

#endif /* MOZILLA_GFX_FONTVARIATION_H_ */