-
Notifications
You must be signed in to change notification settings - Fork 42
add optional libXfont2 support #14
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
add optional libXfont2 support #14
Conversation
using the header, the diff is much cleaner now, except that you suddenly changed the fpe type so now we have . vs -> accessing the field, which makes it a bit of a mess again. |
@rofl0r The reason I did that is because of how libXfont2 handles the fpe functions. I based this libXfont2 port on Xorg code, specifically this patch: https://lists.freedesktop.org/archives/xorg-devel/2016-May/049769.html I tried to see if I can somehow make fpe_functions a regular pointer instead of an indirect pointer, but I couldn't. If you see some way to do that that I missed, let me know an I'll try to update my patch. I changed all the accesses to indirect accesses so that I don't have ifdef's for libXfont1 direct accesses vs libXfont2 indirect accesses. I am pretty sure the compiler optimizes out the indirect accesses in the libXfont1 case, but I could use |
172e802
to
3e2238f
Compare
@Rofl0l Fixed the 2 things you pointed out and added the const I mentioned in my above comment. I can get rid of one more ifdef in dix/main.c with something like '#define ResetFontPrivateIndex(...)', an empty function define to remove a call that doesn't happen with libXfont2. Should I do that too? |
i'm just providing some advice on how i would do things to make them less awful :) |
3e2238f
to
4f0c87f
Compare
@rofl0r I added the empty function define too. Btw, are you not a tinyx or tinycorelinux dev? I assumed you were since I saw you comment in various issues and PR's. |
nope, @sabotage-linux dev here. |
@clbr |
Sorry, can't review right now.
|
@stefan11111 TrueType fonts don't work. I tried modifying |
How did you modify dixfonts.c ? |
Around where it says I used current Debian, which only has libXfont2. The Perhaps I am not taking the correct approach. To test TTF support, you can install Best of luck. |
That code is there to prevent crashes like yours. |
@clbr ping |
Same PR as #13 ,but everything squashed in one single commit.