summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_font.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_font.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_font.cpp b/xfa/fxfa/parser/cxfa_font.cpp
index d54ac0ba72..209a3c6778 100644
--- a/xfa/fxfa/parser/cxfa_font.cpp
+++ b/xfa/fxfa/parser/cxfa_font.cpp
@@ -58,7 +58,7 @@ int32_t CXFA_Font::GetUnderline() {
int32_t CXFA_Font::GetUnderlinePeriod() {
XFA_ATTRIBUTEENUM eAttr = XFA_ATTRIBUTEENUM_All;
- m_pNode->JSNode()->TryEnum(XFA_ATTRIBUTE_UnderlinePeriod, eAttr);
+ m_pNode->JSNode()->TryEnum(XFA_ATTRIBUTE_UnderlinePeriod, eAttr, true);
return eAttr;
}
@@ -74,13 +74,13 @@ void CXFA_Font::GetTypeface(WideStringView& wsTypeFace) {
bool CXFA_Font::IsBold() {
XFA_ATTRIBUTEENUM eAttr = XFA_ATTRIBUTEENUM_Normal;
- m_pNode->JSNode()->TryEnum(XFA_ATTRIBUTE_Weight, eAttr);
+ m_pNode->JSNode()->TryEnum(XFA_ATTRIBUTE_Weight, eAttr, true);
return eAttr == XFA_ATTRIBUTEENUM_Bold;
}
bool CXFA_Font::IsItalic() {
XFA_ATTRIBUTEENUM eAttr = XFA_ATTRIBUTEENUM_Normal;
- m_pNode->JSNode()->TryEnum(XFA_ATTRIBUTE_Posture, eAttr);
+ m_pNode->JSNode()->TryEnum(XFA_ATTRIBUTE_Posture, eAttr, true);
return eAttr == XFA_ATTRIBUTEENUM_Italic;
}