Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
458c462bb8
@ -43,7 +43,6 @@ int main() {
|
|||||||
|
|
||||||
SetConfigFlags(FLAG_WINDOW_HIGHDPI);
|
SetConfigFlags(FLAG_WINDOW_HIGHDPI);
|
||||||
InitWindow(screenwidth, screenheight, "raylib");
|
InitWindow(screenwidth, screenheight, "raylib");
|
||||||
DPI = GetWindowScaleDPI();
|
|
||||||
|
|
||||||
MyFont vollkorn("assets/fonts/Vollkorn/static/Vollkorn-Regular.ttf", 24);
|
MyFont vollkorn("assets/fonts/Vollkorn/static/Vollkorn-Regular.ttf", 24);
|
||||||
MyFont arabic("assets/fonts/Amiri/Amiri-Regular.ttf", 28);
|
MyFont arabic("assets/fonts/Amiri/Amiri-Regular.ttf", 28);
|
||||||
@ -71,10 +70,11 @@ int main() {
|
|||||||
gt += dt * k;
|
gt += dt * k;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto [x, y] = GetWindowScaleDPI();
|
DPI = GetWindowScaleDPI();
|
||||||
BeginDrawing();
|
BeginDrawing();
|
||||||
ClearBackground(SKYBLUE);
|
ClearBackground(SKYBLUE);
|
||||||
//DrawText("Hello, Sailor!", 150, 150, 20, RAYWHITE);
|
|
||||||
|
std::println("DPI: ({}, {})", DPI.x, DPI.y);
|
||||||
|
|
||||||
vollkorn.render_text("The night is long and cold outside", {0 ,0}, WHITE);
|
vollkorn.render_text("The night is long and cold outside", {0 ,0}, WHITE);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user