You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was hoping someone would take vector text rendering to this level. Using the QGIS API is pretty clever.
I hope this isn't an unwanted suggestion, but one lesson I learned from gj2ascii is that adding an empty space after each character (effectively between "pixels") produces a graphic that looks less squished. Ideally this empty space would be the same character as the "pixel" to produce a more continuous graphic although I have not tried this. An area that is two characters wide and one line tall is closer to being square than an area one character wide and one line tall. The big trade off is that you can't render as much data in each rendered view because you have to cut the vertical width in half. The array2ascii() function handles this if you're interested.
If (when?) I do another pass through gj2ascii I would also use Numpy arrays wherever possible, which should be faster than the list-of-lists arrays.
The text was updated successfully, but these errors were encountered:
Ah yeah the double pixel thing works! I'll try to find a couple minutes sometime in the next few days to sketch out at least layer stacking with Numpy.
I was hoping someone would take vector text rendering to this level. Using the QGIS API is pretty clever.
I hope this isn't an unwanted suggestion, but one lesson I learned from
gj2ascii
is that adding an empty space after each character (effectively between "pixels") produces a graphic that looks less squished. Ideally this empty space would be the same character as the "pixel" to produce a more continuous graphic although I have not tried this. An area that is two characters wide and one line tall is closer to being square than an area one character wide and one line tall. The big trade off is that you can't render as much data in each rendered view because you have to cut the vertical width in half. Thearray2ascii()
function handles this if you're interested.If (when?) I do another pass through
gj2ascii
I would also use Numpy arrays wherever possible, which should be faster than the list-of-lists arrays.The text was updated successfully, but these errors were encountered: