7#include "xfa/fxfa/parser/cxfa_font.h"
9#include "fxjs/xfa/cjx_node.h"
10#include "xfa/fxfa/parser/cxfa_document.h"
11#include "xfa/fxfa/parser/cxfa_fill.h"
12#include "xfa/fxfa/parser/cxfa_measurement.h"
58 {XFA_XDPPACKET::kTemplate, XFA_XDPPACKET::kConfig,
59 XFA_XDPPACKET::kForm},
64 cppgc::MakeGarbageCollected<CJX_Node>(
65 doc->GetHeap()->GetAllocationHandle(),
71 return JSObject()->GetMeasureInUnit(
XFA_Attribute::BaselineShift,
76 WideString wsValue = JSObject()->GetCData(
XFA_Attribute::FontHorizontalScale);
78 return iScale > 0 ? (
float)iScale : 100.0f;
82 WideString wsValue = JSObject()->GetCData(
XFA_Attribute::FontVerticalScale);
84 return iScale > 0 ? (
float)iScale : 100.0f;
88 WideString wsValue = JSObject()->GetCData(
XFA_Attribute::LetterSpacing);
128 JSObject()->GetOrCreateProperty<CXFA_Fill>(0,
XFA_Element::Fill);
136 const auto* fill = GetChild<CXFA_Fill>(0,
XFA_Element::Fill,
false);
137 return fill ? fill->GetTextColor() : 0xFF000000;
void SetColor(FX_ARGB color)
float GetBaselineShift() const
float GetHorizontalScale()
float GetFontSize() const
void SetColor(FX_ARGB color)
XFA_AttributeValue GetUnderlinePeriod()
float ToUnit(XFA_Unit eUnit) const
const wchar_t * c_str() const
int32_t FXSYS_wtoi(const wchar_t *str)