<TWPRichText>.Font

    • Offizieller Beitrag

    Hi,

    Using 'Font' always was a bad idea because:
    a) the TFont only offers a sub sub selections of available characteristics
    b) There is no way to change only part of the definition - a TFont always defines name, color AND size.

    So, as conclusin do not use 'Font' at ll. If you really need to use a TFont object there is the
    function TWPCustomRichText.UpdateFontValues : TFont;
    to retrieve a TFont object and the method ApplyFont to assign one.

    Example: The font dialog procedure uses the TFont methods:

    So instead of 'Font' use CurrAttr

    Julian Ziersch