Skip to content

Wrong font size #107

Description

@TiAlRo

I have the following code:

const textEncoder = new TextEncoder();
  const buffer = textEncoder.encode(`{\\rtf1 A{}A\\fs16}`).buffer;
  const doc = new RTFJS.Document(buffer, {}),
    renderedDoc = await doc.render(),
    div = document.createElement("div");
  div.append(...renderedDoc);

After execution, the variable div.innerHTML has the value
<div style="text-align: left;"><span>A</span><span style="font-size: 8pt;">A</span></div>.

I would expect the variable to have the value
<div><span>AA</span></div>
(the same as for the rtf document {\\rtf1 AA\\fs16} without the group).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions