aiekick / imguifontstudio Goto Github PK
View Code? Open in Web Editor NEWEmbedded Font Helper Gui Tool for programming
License: Apache License 2.0
Embedded Font Helper Gui Tool for programming
License: Apache License 2.0
Hi Aiekick,
Thank you for such a cool tool!
I'm testing a feature to save all final selected fonts to a single .ttf file and generate a header for all the glyph.
In this case, no matter if a source font file in the project is used (i.e. has its glyph(s) selected), since it is a candidate and I may use it next time, a final .ttf should be exported.
I'm not sure if the "Merge" mode is the correct mode in this use case, but the Generator::GenerateFontFile_Merged
function returned with error.
Trying to compile here.
I am very newbie out of Visual Studio...
Any help is appreciated.
PS D:\_CODE\_C\ImGuiFontStudio> cmake -B my_build_directory -DCMAKE_BUILD_TYPE=BuildMode
CMake Error: The current CMakeCache.txt directory D:/_CODE/_C/ImGuiFontStudio/my_build_directory/CMakeCache.txt is different than the directory /d/_CODE/_C/ImGuiFontStudio/my_build_directory where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "D:/_CODE/_C/ImGuiFontStudio/CMakeLists.txt" does not match the source "/d/_CODE/_C/ImGuiFontStudio/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
PS D:\_CODE\_C\ImGuiFontStudio> cmake --build my_build_directory --config BuildMode
CMake Error: The current CMakeCache.txt directory D:/_CODE/_C/ImGuiFontStudio/my_build_directory/CMakeCache.txt is different than the directory /d/_CODE/_C/ImGuiFontStudio/my_build_directory where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
The system cannot find the file specified
CMake Error: Generator: execution of make failed. Make command was: /usr/bin/make.exe -f Makefile &&
PS D:\_CODE\_C\ImGuiFontStudio>
moebiussurfing@surfingMachine MINGW64 /d/_CODE/_C/ImGuiFontStudio
$ pacman -Ss glew
mingw32/mingw-w64-i686-glew 2.2.0-2 [installed]
GLEW, The OpenGL Extension Wrangler Library (mingw-w64)
mingw64/mingw-w64-x86_64-glew 2.2.0-2 [installed]
GLEW, The OpenGL Extension Wrangler Library (mingw-w64)
ucrt64/mingw-w64-ucrt-x86_64-glew 2.2.0-2
GLEW, The OpenGL Extension Wrangler Library (mingw-w64)
clang32/mingw-w64-clang-i686-glew 2.2.0-2
GLEW, The OpenGL Extension Wrangler Library (mingw-w64)
clang64/mingw-w64-clang-x86_64-glew 2.2.0-2
GLEW, The OpenGL Extension Wrangler Library (mingw-w64)
moebiussurfing@surfingMachine MINGW64 /d/_CODE/_C/ImGuiFontStudio
$ cmake -B my_build_directory -DCMAKE_BUILD_TYPE=BuildMode
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0-19044 to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please post that file on discourse.cmake.org.
CMake Error at /usr/share/cmake-3.22.1/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-3.22.1/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.22.1/Modules/FindOpenGL.cmake:443 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/3rdparty.cmake:14 (find_package)
CMakeLists.txt:22 (include)
-- Configuring incomplete, errors occurred!
See also "/d/_CODE/_C/ImGuiFontStudio/my_build_directory/CMakeFiles/CMakeOutput.log".
Describe the bug
Build error related to sfntly:
Errors:
To Reproduce
Visual Studio 2019 - 14.26.28720 (tested \c++lastest)
Expected behavior
Built project.
Screenshots
Desktop (please complete the following information):
hello @pshurgal,
sorry for disturb you, you have created a pull request regarding imgui freetype branch for color font.
for have color font support in ImGuiFontStudio i need first to have the ability to laod and display color font.
but he not work. all glyph are displayed in monochrome.
can you check this branch if you have time, maybe im wrong somewhere?
https://github.com/aiekick/ImGuiFontStudio/tree/freetype
Thanks
If the two fonts have different Height, the resulting font will use the height of the first font.
so many glyph can be very small.
we need to scale each contours of each glyph.
so we need to inspect and modify each glyph.
for the moment, the soft copy the whole glyph data. not modify nothing inside the glyph
Describe the bug
When open ImGuiFontStudio.ifs project file
Set Merged mode + Header + font + + by Name and generate
the ttf is generated bu the header cuase an error in console.
header file in .h not found
error seen in Osw and Linux only
I did merge two different font files. Fonts from second file(tasks.ttf) is not working from generated as header+cpp. Files are attached below.
Header + CPP files: Archive.zip
ImGui::MenuItem(ICON_FileMenu_ROOT); // Not showing
ImGui::MenuItem(ICON_FileMenu_OPEN);
MaterialDesign-Webfont last version not shown
Describe the bug
The ImGuiFileDialog.cmake script did not work! After fixing it finnished.
All went fine until the compiler hit ImWidgets.cpp, there where to many
errors to fix so I give up.
Desktop (please complete the following information):
Describe the bug
Opening the generated ttf is giving an error.
.h file look fine.
That happened using one only font or/and merging/picking from many fonts.
Desktop (please complete the following information):
Windows 10
Additional context
Thats the binary that I used:
https://github.com/aiekick/ImGuiFontStudio/releases/download/b0.5/ImGuiFontStudio_Msvc_Win32.exe
Should I compile a new version from the repo by myself?
Thanks!
We can share samples_Fonts in this title?
my archieve is https://github.com/mumin16/GTK-4-Reference-Manual-pdf/blob/main/samples_Fonts.rar
Hi! You created an awersome tool. Thank you! But it doesn't work for me.
I get an error after generating a font:
As far as I understand, it tries to load just generated font, but it can't because the font is broken. Also, I tried to manually open generated font using OS font viewer and font studio, both give an error.
How I have compiled it:
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
Then I just created a new project, opened just downloaded FontAwersome font, selected all glyphs, and pressed generate. I didn't change any settings.
Font studio opened header file (ok), png (ok), but the font generated by the studio was broken, so, I got this error message.
Also, I tried different fonts.
OS: Linux 5.10
Compiler: GCC (10.2)
CMake: latest (3.19)
I hope for your help! Thanks in advance!
Describe the bug
when a high res font is merged in a low res font, the glyphs downscale cause deformed glyphs and outside of bounding box
the inverse from low scale to high scale look nice without issues
First of all this is a great tool, I love it, thank you very much.
I have a stupid problem about the font sizes. But I 'm not sure why this is happening or what is wrong. I'll be glad if you can point me to the right direction.
Here is my font icon result. As you can see only (blue area) more than half of them is active. Looks like their size is wrong. This also cause a problem MainMenuBar's size(height) and those icons are not at the center of it.
My settings:
I guess merging fonts cause this problem. When I disable merging, it works
// ImGui::GetIO().Fonts->AddFontDefault();
static const ImWchar icons_ranges[] = {ICON_MIN_FileMenu, ICON_MAX_FileMenu, 0};
ImFontConfig icons_config;
// icons_config.MergeMode = true;
icons_config.PixelSnapH = true;
ImGui::GetIO().Fonts->AddFontFromMemoryCompressedBase85TTF(FONT_ICON_BUFFER_NAME_FileMenu, 22.0f, &icons_config, icons_ranges);
Is there a way to fix this? Any suggestions?
Thank you
because the font file location rekative to the project file is not changed..
Hi @aiekick,
When I was working on ImGuiFontDialog this morning I have to admit I didn't fully understand what ImGuiFontStudio was. When I mentioned ImGuiCppIcons there I didn't realize that you had this project that does the same thing and so much more. When I saw you had edited that section to mention this project, I took a closer look and wow, this is a really neat project.
I'm sorry I neglected your project with my edits there! I'm going to send you a fix for that with a better nod to this repo.
Would you mind if hacked around a bit and dropped in some PRs on this project?
I'd also like to do some work on the file dialog if you're ok with that.
Cheers,
Dan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.