Skip to content

Commit

Permalink
Don't use custom font for autocompletion lists, and fix wrong editor …
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanrussell authored Jan 29, 2025
1 parent 3723ae6 commit 35416c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Projects/Src/IDE.MainForm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,6 @@ procedure TMainFormPopupMenu.Popup(X, Y: Integer);
function TMainForm.InitializeMemoBase(const Memo: TIDEScintEdit; const PopupMenu: TPopupMenu): TIDEScintEdit;
begin
Memo.Align := alClient;
Memo.AutoCompleteFontName := Font.Name;
Memo.AutoCompleteFontSize := Font.Size;
Memo.Font.Name := GetPreferredMemoFont; { Default font only, see ReadConfig }
Memo.Font.Size := 10;
Memo.ShowHint := True;
Expand Down Expand Up @@ -871,7 +869,7 @@ constructor TMainForm.Create(AOwner: TComponent);
if (I >= 0) and (I <= Ord(High(TThemeType))) then
FOptions.ThemeType := TThemeType(I);
FMainMemo.Font.Name := Ini.ReadString('Options', 'EditorFontName', FMainMemo.Font.Name);
FMainMemo.Font.Size := Ini.ReadInteger('Options', 'EditorFontSize', FMainMemo.Font.Size);
FMainMemo.Font.Size := Ini.ReadInteger('Options', 'EditorFontSize', 10);
FMainMemo.Font.Charset := Ini.ReadInteger('Options', 'EditorFontCharset', FMainMemo.Font.Charset);
FMainMemo.Zoom := Ini.ReadInteger('Options', 'Zoom', 0); { MemoZoom will zoom the other memos }
for Memo in FMemos do
Expand Down
2 changes: 2 additions & 0 deletions whatsnew.htm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

<ul>
<li>Compiler IDE: Added mouseover tooltips for all Pascal Scripting support functions and class members showing their prototype. Always shows all classes' members instead of just those of the current object's class.</li>
<li>Compiler IDE: Autocompletion lists now use the same font as the editor.</li>
<li><i>Fix:</i> When the IDE was started for the first time on a system with a DPI setting over 100%, the editor's initial font size was larger than expected.</li>
<li><i>Fix:</i> In 6.4.0, using &quot;Shift+&quot; in a <tt>HotKey</tt> parameter in the [Icons] section didn't work and required &quot;Shift&quot; instead, so for example &quot;Ctrl+ShiftM&quot; instead of &quot;Ctrl+Shift+M&quot;.</li>
<li><i>Fix:</i> In 6.4.0, a custom form shown using <tt>[Code]</tt> didn't have a taskbar button if Setup's wizard was not visible at the time.</li>
</ul>
Expand Down

0 comments on commit 35416c8

Please sign in to comment.