Line data Source code
1 : /* -*- Mode: c++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 : * This Source Code Form is subject to the terms of the Mozilla Public
3 : * License, v. 2.0. If a copy of the MPL was not distributed with this
4 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 :
6 : #ifndef MOZILLA_GFX_FONTVARIATION_H_
7 : #define MOZILLA_GFX_FONTVARIATION_H_
8 :
9 : namespace mozilla {
10 : namespace gfx {
11 :
12 : // An OpenType variation tag and value pair
13 : struct FontVariation
14 : {
15 : uint32_t mTag;
16 : float mValue;
17 :
18 0 : bool operator==(const FontVariation& aOther) const {
19 0 : return mTag == aOther.mTag && mValue == aOther.mValue;
20 : }
21 : };
22 :
23 : } // namespace gfx
24 : } // namespace mozilla
25 :
26 : #endif /* MOZILLA_GFX_FONTVARIATION_H_ */
|