Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cjs_font.cpp
Go to the documentation of this file.
1
// Copyright 2017 The PDFium Authors
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
"fxjs/cjs_font.h"
8
9
const
JSConstSpec
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
25
uint32_t CJS_Font::ObjDefnID = 0;
26
27
// static
28
void
CJS_Font::
DefineJSObjects
(
CFXJS_Engine
* pEngine) {
29
ObjDefnID = pEngine->DefineObj(
"font"
,
FXJSOBJTYPE_STATIC
,
nullptr
,
nullptr
);
30
DefineConsts
(pEngine, ObjDefnID, ConstSpecs);
31
}
FXJSOBJTYPE_STATIC
@ FXJSOBJTYPE_STATIC
Definition
cfxjs_engine.h:37
CFXJS_Engine
Definition
cfxjs_engine.h:83
CJS_Font::DefineJSObjects
static void DefineJSObjects(CFXJS_Engine *pEngine)
Definition
cjs_font.cpp:28
CJS_Object::DefineConsts
static void DefineConsts(CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSConstSpec > consts)
Definition
cjs_object.cpp:12
JSConstSpec
Definition
cjs_object.h:16
JSConstSpec::String
@ String
Definition
cjs_object.h:17
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxjs
cjs_font.cpp
Generated on Sat Sep 21 2024 00:58:57 for Qt by
1.12.0