If I insert a symbol using your dialog from windings it displays as the arial equivalent. How can I make this display correctly?
Ken
If I insert a symbol using your dialog from windings it displays as the arial equivalent. How can I make this display correctly?
Ken
Hi,
as far as I can tell here does the old (and the new extended V6) Dialog switch the current font to insert the character using that font.
Julian
Even using the WordPad5 demo under Delphi 2010 it does not work. Are you suggesting that I upgrade to V6 just for this?
Hi,
WPTools 5 does not support Delphi 2010. The PRO edition "compiles" with Delphi 2009 but does not include the latest unicode optimations. I recomend to upgrade to WPTools 6 to make propper use of Delphi 2010 (which I didn't know You were using).
Internally, the assignment of the font name is nothing special, it is done by TWPSymbolDialog.Insert which should read like:
procedure TWPSymbolDialog.Insert;
var
TheSelection: TGridRect;
a : Integer;
begin
if fsEditBox <> nil then
begin
fsEditBox.SetFocus;
fsEditBox.Memo.Cursor.WritingTextAttr.SetFontName(FFontName);
TheSelection := CharacterGrid.Selection;
if (CompareText(FFontName, 'Symbol') = 0) or
(CompareText(Copy(FFontName, 1, 9), 'Wingdings') = 0) or // ..1, ..2, ...
(CompareText(FFontName, 'Webdings') = 0) then
begin
if not fsEditBox.Memo.Cursor.WritingTextAttr.GetFontCharset(a) then a := -1;
fsEditBox.Memo.Cursor.WritingTextAttr.SetFontCharSet(2);
fsEditBox.InputString(FCharacter);
fsEditBox.Memo.Cursor.WritingTextAttr.SetFontCharSet(a);
end
else fsEditBox.InputString(FCharacter);
FModified := TRUE;
fsEditBox.Refresh;
end;
end;
Alles anzeigen
That code is taken from WPTools 5 - WPTools 6 uses a symbol dialog which shows unicode ranges.
Julian
Julian,
Yes, it is the same. Would you be kind enought to try the WordPad5 demo usibg V5 and Delphi 2010.
Ken
Hi,
Probably it is neither caused by Delphi 2010 nor the symbol dialog, but something completely different. Please try with the new build 5.58.1 which is available now.
Julian
Julian,
Thanks very much. That fixed it.
Ken