Giter Site home page Giter Site logo

Comments (10)

ChrisDill avatar ChrisDill commented on June 22, 2024 2

@AlexisHuvier @n77y Fix is now in the 4.5.0.4 release.

from raylib-cs.

nickyMcDonald avatar nickyMcDonald commented on June 22, 2024 1

I'm proven wrong about the default font.

I have made a pr with a fix for this bug #185.

This was the result of a fix for another bug. That fix changed all the string conversions from UTF8 to ANSI. Issue is that raylib uses UTF8 for drawing text not ANSI.

from raylib-cs.

ChrisDill avatar ChrisDill commented on June 22, 2024 1

@n77y Thanks for looking into this issue. Few changes needed on your pr then it can be merged.

from raylib-cs.

nickyMcDonald avatar nickyMcDonald commented on June 22, 2024

Looks like bug was introduced here #173

from raylib-cs.

ChrisDill avatar ChrisDill commented on June 22, 2024

@AlexisHuvier Can you share a code example for this issue?

from raylib-cs.

AlexisHuvier avatar AlexisHuvier commented on June 22, 2024

@AlexisHuvier Can you share a code example for this issue?

I don't have now because it in a big project.
If it's needed, i can make it

from raylib-cs.

ChrisDill avatar ChrisDill commented on June 22, 2024

Just a small example drawing the text that is not showing correctly and the name of the font used.

from raylib-cs.

AlexisHuvier avatar AlexisHuvier commented on June 22, 2024

Just a small example drawing the text that is not showing correctly and the name of the font used.

Screens in the first message used extern font but with DrawText there is the same problem. So i used it to make this example :

    private static void Main()
    {
        // Initialization
        //--------------------------------------------------------------------------------------
        const int screenWidth = 800;
        const int screenHeight = 450;

        InitWindow(screenWidth, screenHeight, "Test");
        //--------------------------------------------------------------------------------------

        // Main game loop
        while (!WindowShouldClose())
        {
            BeginDrawing();
            ClearBackground(Color.RAYWHITE);

            DrawText("éèàùè&", 250, 20, 20, Color.DARKGRAY);

            EndDrawing();
        }

        CloseWindow();
    }

Result with 4.5.0.3 :
image

from raylib-cs.

nickyMcDonald avatar nickyMcDonald commented on June 22, 2024

Wouldn’t this be expected with the default font? I don’t believe there are any additional characters beyond ASCII in the default font.

from raylib-cs.

AlexisHuvier avatar AlexisHuvier commented on June 22, 2024

Wouldn’t this be expected with the default font? I don’t believe there are any additional characters beyond ASCII in the default font.

With the same code, 4.5.0.2 make this result :
image

from raylib-cs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.