Uh oh!
There was an error while loading. Please reload this page.
add optional libXfont2 support - #14
Conversation
stefan11111
commented
Dec 22, 2024
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rofl0r
commented
Dec 22, 2024
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. |
stefan11111
commented
Dec 22, 2024
@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
3e2238fComparestefan11111
commented
Dec 22, 2024
@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? |
rofl0r
commented
Dec 22, 2024
i'm just providing some advice on how i would do things to make them less awful :) |
3e2238f to
4f0c87fComparestefan11111
commented
Dec 22, 2024
@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. |
rofl0r
commented
Dec 22, 2024
nope, @sabotage-linux dev here. |
stefan11111
commented
Jan 31, 2025
@clbr |
clbr
commented
Feb 1, 2025
via email
Sorry, can't review right now. |
narinishi
commented
Feb 12, 2025
@stefan11111 TrueType fonts don't work. I tried modifying |
stefan11111
commented
Feb 13, 2025
How did you modify dixfonts.c ? |
narinishi
commented
Feb 13, 2025
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. |
stefan11111
commented
Feb 13, 2025
That code is there to prevent crashes like yours. |
stefan11111
commented
Apr 15, 2025
@clbr ping |
3 similar comments
stefan11111
commented
Jun 16, 2025
@clbr ping |
stefan11111
commented
Aug 24, 2025
@clbr ping |
stefan11111
commented
Nov 3, 2025
@clbr ping |


Same PR as #13 ,but everything squashed in one single commit.