mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Don't use Harfbuzz for simple text rendering + Ignored warnings
This commit is contained in:
@@ -671,7 +671,7 @@ namespace GlitchyEngine.Renderer.Text
|
||||
|
||||
shape.Normalize();
|
||||
|
||||
var bounds = shape.GetBounds();
|
||||
//var bounds = shape.GetBounds();
|
||||
|
||||
//shape.ReverseIfNeeded(bounds);
|
||||
|
||||
|
||||
@@ -458,6 +458,7 @@ namespace GlitchyEngine.Renderer.Text
|
||||
//float f = 1.0f;
|
||||
//int32 depthInt = *(int32*)&f;
|
||||
|
||||
/*
|
||||
// Shape!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
// 1. Create a buffer and put your text in it:
|
||||
@@ -561,7 +562,8 @@ namespace GlitchyEngine.Renderer.Text
|
||||
penPosition += (x_advance / 64) * glyphFontScale;
|
||||
baseline += (y_advance / 64) * glyphFontScale;
|
||||
}
|
||||
/*
|
||||
*/
|
||||
|
||||
// enumerate through the unicode codepoints
|
||||
for(char32 char in text.DecodedChars)
|
||||
{
|
||||
@@ -635,7 +637,7 @@ namespace GlitchyEngine.Renderer.Text
|
||||
// Increase depth for the next glyph
|
||||
//depthInt--;
|
||||
}
|
||||
*/
|
||||
|
||||
Renderer2D.Flush();
|
||||
|
||||
// TODO: not good!
|
||||
|
||||
Vendored
+1
-1
Submodule GlitchyEngine/vendor/freetype updated: 1dff3b06b9...fc81890eb0
Vendored
+1
-1
Submodule GlitchyEngine/vendor/msdfgen updated: 9f19e63a51...03cd808438
Reference in New Issue
Block a user