Comments (4)
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.
Ah sorry, that was the wrong link. I took the demo from https://github.com/lhf/libschrift-show
from libschrift.
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.
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)
- Darwin compilation HOT 8
- Tutorial for OpenGL? HOT 4
- support anti-aliasing? HOT 7
- Add travis CI or any other CI HOT 1
- How Can I Compile For Windows? [Question] HOT 2
- Does libschrift support colored emojis? HOT 1
- Stack overflow in render_outline due to 256KB stack allocation HOT 3
- demos depend on graphics environment HOT 1
- draw_line function algorithm HOT 2
- Review usage of intenal csearch() function
- Whitespaces are not being rendered HOT 2
- typo in docs
- guard unix-y implementation details
- Function that returns a list of all glyphs
- Sample code that just outputs the line points HOT 1
- Incorrect code in sft_kerning
- Slow character lookup
- Is yOffset correct? HOT 3
- Support for RTL languages HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libschrift.