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,
77 int32_t iScale = FXSYS_wtoi(wsValue.c_str());
78 return iScale > 0 ? (
float)iScale : 100.0f;
83 int32_t iScale = FXSYS_wtoi(wsValue.c_str());
84 return iScale > 0 ? (
float)iScale : 100.0f;
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
fxcrt::WideString WideString