Fonts gone wild ... I dread updating

  • Something has gone very wrong with fonts. I had a simple document with some embedded wingding characters using WPTools 5.17.4. I updated to 5.18.3, and it looks fine until I edit it in any way, like deleting a character and re-entering it or even performing a mailmerge with it. Then when I save and reload it, the document is primarily wingdings. Here is the RTF before and after...

    before (from 5.17.4 or earlier):

    Zitat

    {\rtf1\ansi\deff0\uc1\ansicpg1252\deftab720{\fonttbl{\f0\fnil\fcharset1 Arial;}{\f1\fnil\fcharset2 WingDings;}{\f2\fnil\fcharset0 Arial;}{\f3\fnil\fcharset1 WingDings;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;}\wpprheadfoot1\paperw12240\paperh15840\margl735\margr720\margt1440\margb1440\headery720\footery720\endnhere\sectdefaultcl{\*\generator WPTools_5.18;}{\info{\*\title WPTools_5.09;}
    }{\li180\tx1080\tx630\tx1545\tx2520\plain\f1\fs28\b\'A8 \f1\tab\'A8 \f1\tab\'A8 \f1\tab\'A8\fs24 \tab <$nextlevel:A>. <$caption>\par
    \pard\tx2865\plain\fs22\tab\fs20\i Comments:\par
    \pard\li2880\plain\fs22 <$document>\par
    \pard\plain\li2880\par
    }}

    After (after an edit with 5.18.3):

    Zitat

    {\rtf1\ansi\deff0\uc1\ansicpg1252\deftab720{\fonttbl{\f0\fnil\fcharset1 Arial;}{\f1\fnil\fcharset2 WingDings;}{\f2\fnil\fcharset1 WingDings;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;}\wpprheadfoot1\paperw12240\paperh15840\margl735\margr720\margt1440\margb1440\headery720\footery720\endnhere\sectdefaultcl{\*\generator WPTools_5.18;}{\info{\*\title WPTools_5.09;}
    }{\li180\tx1080\tx630\tx1545\tx2520\plain\f1\fs28\b\'A8 \tab\'A8 \tab\'A8 \tab\'A8\f1\fs24 \tab <$nextlevel:A>. <$caption>\par
    \pard\tx2865\plain\fs22\tab\fs20\i Comments:\par
    \pard\li2880\plain\fs22 <$document>\par
    \pard\plain\li2880\par
    }}

    I can send you images of what it looks like before and after in case you need it.

    Delphi 7, WPTools 5.18.3, WinXP Pro Sp2

    Eric

    • Offizieller Beitrag

    Hi,

    I think this can be caused by the removal of the default font ids in the RTF reader.

    Please for now active the define DONT_FIX_DEFSTYLE in file WPIOReadRTF.

    In next release it should work properly (even with removing that default fonts which is very important for style functionality) - in my beta I cannot reproduce the problem.

    Julian