Skip to content

Parsing RTF form WPF Rich text box incorrectly. #14

@tomhornyak

Description

@tomhornyak

The following RTF, generated form a WPF RTB is parsed incorrect, wrong highlight color (SB yellow, not black), wrong font and font size.

{\rtf1\ansi\ansicpg1252\uc1\htmautsp\deff2{\fonttbl{\f0\fcharset0 Times New Roman;}{\f2\fcharset0 Segoe UI;}}{\colortbl\red0\green0\blue0;\red255\green255\blue255;\red255\green255\blue128;}\loch\hich\dbch\pard\plain\ltrpar\itap0{\lang1033\fs24\f2\cf0 \cf0\ql{\fs40\f2 {\highlight2\ltrch Hello}\li0\ri0\sa0\sb0\fi0\ql\par}
{\fs40\f2 {\highlight2\ltrch World}\li0\ri0\sa0\sb0\fi0\ql\par}
{\fs40\f2 {\ltrch }\li0\ri0\sa0\sb0\fi0\ql\par}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions