Check out my first novel, midnight's simulacra!

Notcurses: Difference between revisions

From dankwiki
Tags: mobile web edit mobile edit
No edit summary
Tags: mobile web edit mobile edit
Line 53: Line 53:


notcurses does not currently handle right-to-left text in any special way, but terminals often apply their own heuristics and stylings. Generally this means that a series of glyphs from right-to-left languages will be reversed in the terminal, but this will <b>not</b> be detectable by notcurses's reflective calls (e.g. <tt>ncplane_at_yx()</tt>).
notcurses does not currently handle right-to-left text in any special way, but terminals often apply their own heuristics and stylings. Generally this means that a series of glyphs from right-to-left languages will be reversed in the terminal, but this will <b>not</b> be detectable by notcurses's reflective calls (e.g. <tt>ncplane_at_yx()</tt>).
==Blitters==
Multiple blitters are provided, and can be selected whenever pixel data is being rendered. This includes <tt>ncvisual</tt> objects and qrcodes.
{| class="wikitable"
! Value !! Geometry !! Comments
|-
| <tt>NCBLITTER_1x1</tt>
| 1x1->1
| Uses spaces and sets the background color. The only blitter available in ASCII mode, and the only reliable blitter on the console. Pixel aspect ratio is equivalent to cell aspect ratio, usually resulting in vertical stretching. Lossless. Reliable no matter the font.
|-
| <tt>NCBLITTER_2x1</tt>
| 2x1->1
| Default blitter. Pixel aspect ratio is one-half the cell aspect ratio, which is usually right where you want it. Uses Unicode upper- and lower-half blocks, and spaces. Lossless.
|-
| <tt>NCBLITTER_2x2</tt>
| 2x2->1
| Highest quality for large images.Pixel aspect ratio is equivalent to cell aspect ratio, usually resulting in vertical stretching. Uses Unicode quadrant and three-quarter blocks (in addition to upper- and lower-half blocks, and spaces). Lossy whenever more than two colors are used within a 2x2 pixel square, lossless otherwise (bi- and tri-linear interpolation is used for more than two colors).
|-
| <tt>NCBLITTER_4x2</tt>
| 4x2->1
| Uses Braille characters, which have spotty font support. Needs more work.
|-
| <tt>NCBLITTER_SIXEL</tt>
| 6x1->1
| Not yet implemented.
|-
|}


==Input==
==Input==