Attach (recommended) or Link to PDF file here:
https://web.archive.org/web/20210607145115/https://www.hsbc.fr/content/dam/hsbc/fr/docs/pib/Contestation-Transaction-Carte-Bancaire.pdf
(in the test corpus)

What is the expected behavior? (add screenshot)
<img width="175" alt="image" src="https://user-images.githubusercontent.com/942640/121593583-f8e4a480-c9f0-11eb-8901-2b3b63bb34c0.png">

What went wrong? (add screenshot)
<img width="124" alt="image" src="https://user-images.githubusercontent.com/942640/121593765-1a459080-c9f1-11eb-8695-461ef4e65c3d.png">

if (this.overline !== 0) {
      style.textDecoration = "overline";
      if (this.overline === 2) {
        style.textDecorationStyle = "double";
      }
    }
    
    if (this.posture !== "normal") {
      style.fontStyle = this.posture;
    }
    const fontSize = measureToString(0.99 * this.size);
    if (fontSize !== "10px") {
      style.fontSize = fontSize;
    }
    style.fontFamily = getFonts(this.typeface);
    if (this.underline !== 0) {
      style.textDecoration = "underline";
      if (this.underline === 2) {
        style.textDecorationStyle = "double";
      }
    }
    
    if (this.weight !== "normal") {
      style.fontWeight = this.weight;
    }
    return style;
  }
}
class Format extends XFAObject {