Commit Graph

15 Commits

Author SHA1 Message Date
Allan Odgaard
e13d531d70 Render glyphs in Unicode’s “private use area”
Previously we would render these with their code point value but since there are probably a few hundred glyphs available (on OS X) in the private use area, it was a disputed choice.
2013-01-09 02:59:18 +01:00
Allan Odgaard
fbbe4ddac7 Cap line number when requesting info from layout
With the new constraint based layout, the gutter can issue line record requests before the layout has been updated to hold the new document buffer.
2012-09-21 16:23:35 +02:00
Allan Odgaard
ebab500ba3 Use std::map/set instead of C arrays
These types come with a find() method and avoids having to use helper functions to get the begin/end of the array (for linear search).
2012-09-20 12:22:20 +02:00
Allan Odgaard
536ea62f2d The indent ignore fold pattern would affect start/stop markers
When we wish to (ab)use the indented fold system to fold sections in markup languages we set the ignore pattern to ignore all but the heading markers. Some markup languages also have markup that might be suitable for folding with explicit start/stop markers, previously these were ignored, if matched by the ignore pattern.

This is an incomplete fix as we don’t correctly nest a start/stop marked block inside a section (the section will stop at the fold start marker).
2012-09-18 20:27:49 +02:00
Allan Odgaard
5ce947541c Use new theme_t API 2012-09-10 22:47:57 +02:00
Allan Odgaard
12f305f82a Spelling dot was drawn flipped 2012-09-10 14:24:05 +02:00
Allan Odgaard
b149b4215e Use image for drawing folding dots
The color of the image can be set by adding a theme style for the foreground and scoped to “deco.folding”.
2012-09-09 11:32:42 +02:00
Allan Odgaard
21e29fd011 Add support for obtaining folding dots imagery
Also remove direct access to context_t’s member data (spelling dot image).
2012-09-09 11:32:41 +02:00
Allan Odgaard
92a058b0dd Add x- and cap height to metrics_t
This is to allow potential background bezels, images, and similar to be aligned with the text.
2012-09-09 11:32:41 +02:00
Allan Odgaard
b6ed16251e Use wrapper for CGContextRef
This allows us to add a few other things like the “misspelled word” image.
2012-09-04 23:53:37 +02:00
Jacob Bandes-Storch
e3aa997b06 Use libc++: replace std::tr1 with std 2012-08-28 13:30:20 +02:00
Allan Odgaard
031fe94fd0 Fix missing underline for misspelled words
As we are using a CGImage for this, we miss out on the retina version, so this code should be revised.
2012-08-22 21:35:55 +02:00
Allan Odgaard
81af193412 Expose (effective) wrap column from layout_t 2012-08-18 23:56:58 +02:00
Allan Odgaard
be63bda3e7 Support East Asian Width
There is a bunch of functions that deal with the logical column count and these now all count code points with the “east asian width” (unicode) property set as two columns.

This closes issue #206.
2012-08-18 21:29:05 +02:00
Allan Odgaard
9894969e67 Initial commit 2012-08-09 16:25:56 +02:00