blob: cd7047df295b6261458f23f1ed60a37d0e3731da [file] [log] [blame]
dan sinclair993a1992017-10-25 20:21:09 -04001// Copyright 2017 PDFium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#include "fpdfsdk/javascript/cjs_font.h"
8
9JSConstSpec CJS_Font::ConstSpecs[] = {
10 {"Times", JSConstSpec::String, 0, "Times-Roman"},
11 {"TimesB", JSConstSpec::String, 0, "Times-Bold"},
12 {"TimesI", JSConstSpec::String, 0, "Times-Italic"},
13 {"TimesBI", JSConstSpec::String, 0, "Times-BoldItalic"},
14 {"Helv", JSConstSpec::String, 0, "Helvetica"},
15 {"HelvB", JSConstSpec::String, 0, "Helvetica-Bold"},
16 {"HelvI", JSConstSpec::String, 0, "Helvetica-Oblique"},
17 {"HelvBI", JSConstSpec::String, 0, "Helvetica-BoldOblique"},
18 {"Cour", JSConstSpec::String, 0, "Courier"},
19 {"CourB", JSConstSpec::String, 0, "Courier-Bold"},
20 {"CourI", JSConstSpec::String, 0, "Courier-Oblique"},
21 {"CourBI", JSConstSpec::String, 0, "Courier-BoldOblique"},
22 {"Symbol", JSConstSpec::String, 0, "Symbol"},
23 {"ZapfD", JSConstSpec::String, 0, "ZapfDingbats"},
24 {0, JSConstSpec::Number, 0, 0}};
25
26IMPLEMENT_JS_CLASS_CONST(CJS_Font, font)