Skip to content

Commit 6fdb7b1

Browse files
committed
Unify the criteria which are used to consider a font to be bold.
Its font weight should be more than 500. DEVSIX-2777
1 parent edafc1b commit 6fdb7b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layout/src/main/java/com/itextpdf/layout/font/FontCharacteristics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public boolean isItalic() {
121121
}
122122

123123
public boolean isBold() {
124-
return isBold || fontWeight > 600;
124+
return isBold || fontWeight > 500;
125125
}
126126

127127
public boolean isMonospace() {

0 commit comments

Comments
 (0)