User forums > Help

How to change font size in Editor ?

<< < (3/4) > >>

Pchief:

--- Quote ---Are you able to select the font in other applications?
--- End quote ---
Yes, I managed to load the font selection dialog in the system's Notepad.exe.



--- Quote ---What happens if you find the font wx sample (probably you'll have to build it) and test it? Would it work?
--- End quote ---
Sorry but I don't know what the "font wx sample" is (e.g.where to obtain it).


Also, There wasn't a <FONT></FONT> section in my default.conf file, and trying to insert such a section such as

--- Code: ---        ......
<editor>
<FONT>
<str>
<![CDATA[Courier New 10]]>
</str>
</FONT>
<colour_sets>
<default />
</colour_sets>
<caret />
<gutter />
<margin />
<selection />
<eol />
<folding />
               .......

--- End code ---
results in further errors (see the attached pic).

oBFusCATed:
Does selecting the font work in notepad++ or codelite (it uses the same technology as codeblocks, so it should fail similarly if it is not a cb problem)?

I can't help with the correct font string. Generally it is not something users are supposed to edit by hand.
The sample is here https://github.com/wxWidgets/wxWidgets/tree/master/samples/font

Miguel Gimenez:
This is my font data (MSW)


--- Code: --- <FONT>
<str>
<![CDATA[1;10.2;-17;0;0;0;400;0;0;0;0;3;2;1;49;Fira Code]]>
</str>
</FONT>

--- End code ---

The string is generated with this code called from wxFont::GetNativeFontInfoDesc()


--- Code: ---s.Printf(wxT("%d;%s;%d;%d;%d;%d;%d;%s;%d"),
             1,                                 // version
             wxString::FromCDouble(GetFractionalPointSize()),
             family,
             (int)style,
             weight,
             underlined,
             strikethrough,
             faceName.GetData(),
             (int)encoding);

--- End code ---

Pchief:
Here comes my test result:
wx font sample(latest git clone): crashes when clicking on menu select -> select font, due to failure of the same module fms.dll (the font selection dialog does not even show up)

codelite 13.0.0 : successfully loads the font dialog


Notepad++ (as well as most apps I use, by the way) do not call the system's font dialog. Instead, they either offer a drop-down style combo box for font choosing or allow direct editing of the config files (e.g. SciTE) to specify fonts.

oBFusCATed:
Can you report this to wxWidgets developers?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version