Coder Social home page Coder Social logo

Comments (4)

tomolt avatar tomolt commented on June 14, 2024

Thank you, I'll investigate this once I find some time.

One thing I noticed is that populating the image struct with anything other than 0 results in an error. Is this intended?

That does sound very odd. The image struct is supposed to be populated by the caller with the width, height, and some memory to store the pixel values to. The exact contents of the pixel memory shouldn't matter, they will be overwritten by sft_render() anyway.

I compiled it with gcc (mingw64) and tested it with the demo from https://github.com/tomolt/libschrift

How did you test with the X11-specific demo program on windows? Did you use a X11-server like Xming or VcXsrv?
Do you have any tips in general for how I can reproduce this problem?

from libschrift.

kleinsimon avatar kleinsimon commented on June 14, 2024

Ah sorry, that was the wrong link. I took the demo from https://github.com/lhf/libschrift-show

from libschrift.

tomolt avatar tomolt commented on June 14, 2024

So far I'm not able to reproduce your issue.
That demo program works fine under Linux.
I also tested it on Windows 10 with MinGW-w64 with the built-in system fonts.
That also generated a non-empty image, although there seems to be some other kind of row stride bug, as the image is skewed horizontally.

What kind of system are you on? Is it x86-64 or ARM? What Windows version?
This might be an endianness problem in the TTF parsing code, or maybe the file mapping code doesn't function properly?

What do you mean by 'populating the image struct with anything other than 0 results in an error'?
What kind of error? Does it crash, or does some function return an error code, or do you get an error message?
Also, what do you mean by 'unmodified bitmap'? (That demo program is supposed to write a Portable Graymap (*.pgm) file
to stdout, not *.bmp.) Is it a completely empty file, or are all pixels blank?

from libschrift.

tomolt avatar tomolt commented on June 14, 2024

Alright, so far I found the cause of the skewing bug that happens with libschrift-show on Windows (lhf/libschrift-show#1).
This probably won't solve your issue though.

from libschrift.

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.