summaryrefslogtreecommitdiff
path: root/src/mbgl/util/i18n.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Fix readability-* errorsThiago Marcos P. Santos2020-03-301-13/+11
| | | | As reported by clang-tidy-8.
* [core] Fix bugprone-macro-parentheses errorsThiago Marcos P. Santos2020-03-301-4/+2
| | | | As reported by clang-tidy-8.
* [core] Render half-width glyphs in upright orientationAlexander Shalamov2019-08-131-0/+8
| | | | | | | | | | This change forces glyphs whose natural orientation in vertical writing mode is 'sideways' to be rendered in upright orientation (only for non complex text layouts). This is different compared to W3C / browser behavior that is by default, renders glyphs in their respective natural orientation. In the future, there might need to add a new layout property that would control glyph orientation separately (e.g., text-glyph-orientation: natural | upright).
* [core] Use constexpr map for verticalized punctiationAlexander Shalamov2019-08-131-2/+4
|
* [core] include Hiragana and Katakana glyph ranges to LocalGlyphRasterizerThiago Marcos P. Santos2019-06-281-1/+2
| | | | Fixes #14993
* [core] Updated script detection for Unicode 12.1Minh Nguyễn2019-04-171-2/+13
| | | | Updated script detection files to reflect changes in Unicode 12.1.
* [core] Updated script detection for Unicode 11Minh Nguyễn2019-01-071-0/+11
| | | | Updated script detection code to reflect changes in Unicode 11.
* [core] unify UTF-8/16 conversion to <boost/locale/encoding_utf.hpp>Konstantin Käfer2018-10-231-1/+1
|
* [core] remove use of <boost/algorithm/string.hpp>Konstantin Käfer2018-10-231-0/+4
|
* [core] Initial implementation of 'format' expressionChris Loer2018-10-151-0/+3
|
* [core] Port is-supported-script to native.Chris Loer2018-04-271-2/+35
| | | | Native port is much simpler because RTL text support is always enabled.
* [ios,macos] Darwin implementation of a CoreText-based LocalGlyphRasterizer.Chris Loer2017-12-111-0/+5
| | | | | - Changing font weight does not currently appear to be working. - Glyph metric extraction code not working; currently unused.
* [core] Fix out-of-bounds array accessAsheem Mamoowala2017-10-121-1/+1
|
* [core] Updated script detection for Unicode 10Minh Nguyễn2017-07-061-2/+14
| | | | Updated script detection code to reflect changes in Unicode 10 and UTR 50 revision 17.
* [core] Disable letter-spacing for Arabic labels (issue #9057)Chris Loer2017-05-221-5/+14
|
* [tidy] llvm-namespace-commentBruno de Oliveira Abinader2017-05-121-1/+1
|
* Upright CJK characters in vertically-oriented labels (#7114)Minh Nguyễn2017-02-101-25/+229
| | | | | CJK characters and adjacent punctuation now remain upright in vertically oriented labels that have line placement. Fixes #1682.
* Port raggedness-minimizing line breaking from gl-js.Chris Loer2017-01-051-0/+2
|
* [core] Full support for line breaking bidirectional text using ICU bidi ↵Chris Loer2016-11-301-6/+4
| | | | | | | functionality. - Trim whitespace from labels before determining their max-width for alignment. - Fix crash on labels that contain lines with only a single character of whitespace.
* [core] Use UTF-16 instead of UTF-32 for label features to avoid extra ↵Chris Loer2016-11-171-6/+6
| | | | | | | conversions and reduce in-memory size. Continue to use uint32 as glyph ID to maintain Glyph PBF, even though we're only using 16 bits of that uint32. Use std::codecvt instead of boost::unicode_iterator for UTF8->UTF16 conversions.
* [core] Line-break ideographic text by character (#6828)Minh Nguyễn2016-11-141-0/+357
* [core] Line-break ideographic text by character Allow a line break to be inserted after any supported Chinese, Japanese, or Yi character in a point-placed label. Balance the lines unless non-ideographic text such as Latin letters are present. Fixes #1223. * [core] Moved more character classing into util::i18n * [core] Detect character properties by Unicode block * [test] Reenabled ideographic breaking tests