User forums > General (but related to Code::Blocks)

2D drawing and fancy fonts

(1/2) > >>

everSome:
In the file codeblocks-code-r12709-trunk\src\sdk\wxscintilla\src\PlatWX.cpp
the error "You need to have Direct2D capable wxWidget build to build Code::Blocks. We want to support fonts with ligatures!!!" Does CodeBlocks generate fonts, or just use them? The connection between isn't clear, at least to me.

AndrewCot:
CodeBlocks does not create any font files. It uses fonts to allow users to change fonts via options in the setting menu for different screens/plugins etc. I have not played around in this area, so other devs may be of more help than I am.


Are you getting the error? If you are then  follow the instructions for setting wxUSE_GRAPHICS_DIRECT2D to 1 on he following page when you build the monolithic wxWidgets for CB:
https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows

Miguel Gimenez:
Code::Blocks can use fonts with ligatures, like FiraCode, but in order to use them Direct2D must be enabled in wxWidgets.

ollydbg:
CodeBlocks and Fira Code issues

There are some discussion about the ligatures and Code::Blocks. You can see the above link.

everSome:
I ask because I tried compiling wxWidgets with clang a few weeks ago and it fails; clang is definitely more finicky. So I tried compiling CodeBlocks with clang utilizing the MSYS2 wxWidgets package for its clang environment, and got this. Just now getting back to this. Seems the MSYS2 package developer dropped "#define wxUSE_GRAPHICS_DIRECT2D 1" support about 4 months ago because they didn't think it made any difference but possibly was the cause of some other problem. Might end up downloading their package building tools and their version of the source to see how they made it work.

Navigation

[0] Message Index

[#] Next page

Go to full version