Don't use Harfbuzz for simple text rendering + Ignored warnings

This commit is contained in:
Simon Lübeß
2022-01-15 13:29:45 +01:00
parent 3c1897b926
commit ee9dfd4593
4 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -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!