gEdit has some code ready for calculating the width of a space, because they use this to determine the tabwidth they need. E.g. 4 Spaces are one tab. So somewhere in there is some magic function to calculate that (I've read about it somewhere, but back then they said it's quite complicated). Anyhow, it could be a reference, and then it would be easy to have it working for any monospace font ...
Right now the branch I am working on and which isin python 3 is the inline preview.
BTW If you want to run it from command line on arch, try using quickly: https://launchpad.net/quickly (look into data/templates/ubuntu-application and then run.py , thats what I am using to develop.
Hi denoyse,
gEdit has some code ready for calculating the width of a space, because they use this to determine the tabwidth they need. E.g. 4 Spaces are one tab. So somewhere in there is some magic function to calculate that (I've read about it somewhere, but back then they said it's quite complicated). Anyhow, it could be a reference, and then it would be easy to have it working for any monospace font ...
Right now the branch I am working on and which isin python 3 is the inline preview.
BTW If you want to run it from command line on arch, try using quickly: https:/ /launchpad. net/quickly (look into data/templates/ ubuntu- application and then run.py , thats what I am using to develop.
Have fun traveling