sidorares/node-x11

Core functions outdated

RossComputerGuy opened this issue · 3 comments

node-x11 needs to be updated, it's missing things like XOpenFont and XBell.

hi, XOpenFont or XBell are not there probably because nobody needed them. Feel free to submit pr :)

Bell request:

     1     104                             opcode
     1     INT8                            percent
     2     1                               request length

OpenFont request:

     1     45                              opcode
     1                                     unused
     2     3+(n+p)/4                       request length
     4     FONT                            fid
     2     n                               length of name
     2                                     unused
     n     STRING8                         name
     p                                     unused, p=pad(n)

note that core x fonts almost never used these days. Most modern toolkits render & composite text either fully locally ( word or paragraphs or whole pages ) or on the server using Render extension + CreateGlyphSet + CompositeGlyphs requests

I added XBell in #181