blob: 7dfc5b7e9efe1f0814434021076bde052792ff33 [file] [log] [blame]
// Copyright 2019 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef CORE_FXGE_SCOPED_FONT_TRANSFORM_H_
#define CORE_FXGE_SCOPED_FONT_TRANSFORM_H_
#include "core/fxge/fx_freetype.h"
// Sets the given transform on the font, and resets it to the identity when it
// goes out of scope.
class ScopedFontTransform {
public:
ScopedFontTransform(FT_Face face, FXFT_Matrix* matrix);
~ScopedFontTransform();
private:
FT_Face m_Face;
};
#endif // CORE_FXGE_SCOPED_FONT_TRANSFORM_H_