csinkers / imguicolortexteditnet Goto Github PK
View Code? Open in Web Editor NEWColorizing text editor for ImGui (C# port)
License: MIT License
Colorizing text editor for ImGui (C# port)
License: MIT License
When I have a custom font set, the cursor slowly gets offset the more characters are on a line. The cursor should be at the end of the text, rather than spaced out.
If a custom font scale is set ie ImGui.SetWindowFontScale(FontScale)
, the cursor also breaks in a similar way though I am not sure if that is the same issue.
Font settings:
unsafe
{
var nativeConfig = ImGuiNative.ImFontConfig_ImFontConfig();
//Add a higher horizontal/vertical sample rate for global scaling.
(*nativeConfig).OversampleH = 8;
(*nativeConfig).OversampleV = 8;
(*nativeConfig).RasterizerMultiply = 1f;
(*nativeConfig).GlyphOffset = new System.Numerics.Vector2(0);
io.Fonts.AddFontFromFileTTF("Font.ttf", 16, nativeConfig);
}
Font file:
Font.zip
Btw thanks for this library! It has been very useful.
I am using ImGuiColorTextEditNet with https://github.com/krulci/DearImGuiInjection in Unity.
I am having issue where cursor position is skipped with space (getting extra spaces after input).
I am getting extra question mark after Ctrl+A, Ctrl+V, Backspace.
In addition, backspace do not delete anything; Ctrl+A in the other hand deletes everything.
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.