To see the issues, you can set the font atlas size to 128 * 128 by changing line 325 "ft__bad_rect_pack_init(&pack, V2i32(1024, 1024));" to "ft__bad_rect_pack_init(&pack, V2i32(128, 128));". The first issue was that the max_dim.y parameter was not respected. The dimension produced would always grow on Y to accommodate for more characters. And so the whole texture array thing was never use. A second issue was that when a character didn't fit on the x axis, we created a new line, but never check that the new line fitted in the current texture slice. A third issue was that when we ended a line because a character didn't fit vertically, we grew the line with a line height equal to the height of the character that didn't fit. |
||
---|---|---|
build_new | ||
code | ||
non-source | ||
triage | ||
.gitignore | ||
4ed.rdbg | ||
README.md | ||
TODO.md | ||
project.4coder |
README.md
4Coder Community
Welcome to the 4coder community repository.
Building
Windows
- Setup the MSVC toolchain in your environment, this can be done with the
code/custom/bin/setup_cl_x64.bat
script - call the
package.bat
script from the code directory$ cd 4cc\code
.\bin\package.bat
- You can also use the
build.bat
script if you want just build the binaries, this does not copy the default config, fonts and bindings$ cd 4cc\code
$ .\bin\build.bat
Linux
tested on Ubuntu 22.04:
-
Get required libraries (apt names):
$ sudo apt install build-essential libx11-dev libxfixes-dev libglx-dev mesa-common-dev libasound2-dev libfreetype-dev libfontconfig-dev
-
Use the
package-linux.sh
script to build and package an application$ cd 4cc/code
$ ./bin/package-linux.sh
-
You can also use the
build-linux.sh
script if you want just build the binaries, this does not copy the default config, fonts and bindings$ cd 4cc/code
$ ./bin/build-linux.sh
Mac (Untested)
- The steps should be the same as linux but replace the
*-linux.sh
with their*-mac.sh
equivalents.