[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: Squares instead of tabs (Xft)
From:       Lucien Gentis <lucien.gentis () univ-lorraine ! fr>
Date:       2019-12-09 17:43:56
Message-ID: 42d32a1a-05d3-0d8b-0a42-edbff8fff10d () univ-lorraine ! fr
[Download RAW message or body]

Hello,

Tab is not a printable character.

I think you have to scan each string you want to display in order to 
replace each encountered tab with a certain number of spaces.

Le 05/12/2019 à 21:28, Радомир Хаџић a écrit  :
> Hello.
>
> I'm using XftDrawStringUtf8() function to display text. But this
> function for some reason displays tabs as squares, instead of drawing
> them the usual way (as spacing), which is what I want.
>
> Any way to get Xft to draw them like spacing (ideally, as 4 or 8 space
> characters)?
> _______________________________________________
> xorg@lists.x.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: https://lists.x.org/mailman/listinfo/xorg
> Your subscription address: %(user_address)s
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic