summaryrefslogtreecommitdiff
path: root/src/mbgl/text
Commit message (Collapse)AuthorAgeFilesLines
* wire in some freetype nonsenseupstream/harfbuzzMike Morris2016-04-133-163/+134
|
* everything is wrong but harfbuzz output is being consumedMike Morris2016-04-123-18/+39
|
* minor cleanupMike Morris2016-04-121-6/+1
|
* first draft of mbgl::Font harfbuzz label shapingMike Morris2016-04-124-116/+241
|
* add freetypeMike Morris2016-04-112-3/+5
|
* initial integration of harfbuzzMike Morris2016-04-111-0/+119
|
* [core] fix infinite loop in mbgl::resampleAnsis Brammanis2016-03-291-0/+3
| | | | fix #4416
* [core] Unify FileRequest and WorkRequestJohn Firebaugh2016-03-241-2/+2
|
* [core] Coordinate is now GeometryCoordinateBruno de Oliveira Abinader2016-03-018-28/+37
| | | | | Also introduced GeometryCoordinates (vector of GeometryCoordinate items), to better cope with GeometryCollection.
* [core] Enforce constants usageBruno de Oliveira Abinader2016-03-011-2/+3
| | | | | Use 'LATITUDE_MAX', 'LONGITUDE_MAX', 'DEG2RAD' and 'RAD2DEG' whenever possible.
* [core] Remove ThreadContext::getFileSource; instead thread FileSource throughJohn Firebaugh2016-02-184-8/+14
|
* [all] Don't interpret 404s on non-tile resources as "no content"John Firebaugh2016-02-101-13/+13
|
* [core] make sure icons fit before the ends of the lineAnsis Brammanis2016-02-091-3/+13
| | | | | | | This skips anchors if there is not enough room before the beginning or end of the line for the icon to fit. -js: https://github.com/mapbox/mapbox-gl-js/pull/2077/files
* [core] support tiles with non-4096 extentsAnsis Brammanis2016-02-023-6/+6
| | | | | Convert all geometries to the maximum extent supported by our buffers and then use that constant extent everywhere else.
* [core] Rationalize Resource initializationJohn Firebaugh2016-01-291-8/+1
|
* [core] Avoid storing raw glyph data in addition to parsed representationJohn Firebaugh2016-01-222-31/+17
|
* [core] fix missing icon collision boxesAnsis Brammanis2016-01-222-10/+18
| | | | port https://github.com/mapbox/mapbox-gl-js/pull/1981
* [core] improve text-max-angle checkAnsis Brammanis2016-01-201-2/+2
| | | | | | | | | Instead of using the absolute value of the sum of angles, use the sum of the absolute values of angles. This helps avoid labels on lines with sharp zig zags. for example, the "Central Campus Mall" label in issue #2998
* [core] implement symbol-avoid-edgesAnsis Brammanis2016-01-202-37/+90
| | | | | | | ref #3582 if `symbol-avoid-edges` is true, this prevents symbols from colliding with tile edges.
* [core][ios][osx][android] make SpriteImage accept PremultipliedImageAnsis Brammanis2016-01-191-4/+4
| | | | | | | | | | | | the SpriteImage constructor signature changes from SpriteImage( uint16_t width, uint16_t height, float pixelRatio, std::string&& data, bool sdf = false); to SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false)
* [core] Use experimental optional instead of mapbox::util::optionalJohn Firebaugh2016-01-191-2/+2
|
* [core] use stale glyphsKonstantin Käfer2016-01-153-29/+31
| | | | Updating glyphs is still unsupported, and there's no good use case for doing so. When we're using a stale glyph PBF, and the fresh answer contains changed to that glyph, we will continue to use the old glyph.
* [core] match icon rendering with -jsAnsis Brammanis2016-01-133-12/+20
| | | | port https://github.com/mapbox/mapbox-gl-js/pull/1919/files
* [core] fix text-offset bugkelvinabrokwa2016-01-072-9/+9
| | | | fixes #3469
* [core] Rationalize error handling for resource loadingJohn Firebaugh2015-12-234-82/+33
| | | | | | | | | * Standardize on std::exception_ptr as the error representation (fixes #2854). * Don't format textual strings at the error source; pass on the constituent data via observer method parameters instead. * Use the null object pattern to simplify observer notification code. * Further refactoring for ResourceLoading tests.
* [core] add std::move to constructorsKonstantin Käfer2015-12-031-1/+2
|
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-0316-17/+17
|
* [core] Fix std::move() misuse that disables copy elisionKonstantin Käfer2015-12-031-1/+1
|
* [core] Remove unused libuv includesThiago Marcos P. Santos2015-12-011-0/+2
|
* [core] Use std::unique_ptr for FileSource requestJohn Firebaugh2015-11-161-3/+3
|
* [core] Pass a value to response callback, not a referenceJohn Firebaugh2015-11-161-1/+1
|
* [core] Do not pass uv_loop_t aroundThiago Marcos P. Santos2015-11-162-2/+1
| | | | This should be abstracted by util::RunLoop
* [core] Eliminate use of ClassProperties for layoutJohn Firebaugh2015-11-102-5/+5
|
* [core] move retry logic to DefaultFileSourceKonstantin Käfer2015-11-021-2/+2
|
* [core] always reparse with the freshest possible placement configKonstantin Käfer2015-10-263-28/+51
| | | | Fixes an issue where updates to stale tiles would remove labels altogether until the map was rotated.
* [core] Make response data shared to avoid excessive copyingKonstantin Käfer2015-10-262-3/+4
|
* [core] add support for stale responsesKonstantin Käfer2015-10-261-0/+4
| | | | We're now returning stale responses from cache. Those responses will have the `stale` flag set to true. Currently, all requesters in the core code discard stale responses, and cancel the request immediately after they got a non-stale response.
* [core] use RAII-style lifetime tracking of Request objectsKonstantin Käfer2015-10-262-8/+3
|
* [core] all requests have to be canceled explicitly nowKonstantin Käfer2015-10-261-0/+2
| | | | By not automatically destroying Request objects after the result has been delivered, we are making sure that we can potentially fire the callback multiple times without adverse effects. This means that you have to hold on to the result of fs->request(), can explicitly cancel it if you don't want to be notified of data changes anymore. Not doing so will monitor the request indefinitely and will prevent the app from exiting.
* [core] Rationalize style property classes: <type>{Paint,Layout}PropertiesJohn Firebaugh2015-10-224-16/+16
|
* Break lines on com­mon­ly un­spaced punc­tu­a­tionMinh Nguyễn2015-10-131-2/+20
| | | | | | Par­ti­cu­lar­ly hy­phens and soft hy­phens. Fixes #2595.
* [core] Look the other way when placing icon at start of lineMinh Nguyễn2015-10-071-1/+7
| | | | | | When an anchor is at the beginning of a line, its segment’s coordinates match its own coordinates, resulting in an angle of 0°. When the segment’s coordinates match the anchor’s coordinates, consider the next segment instead. Fixes #2474.
* port minor collision code cleanup, fix #1705Ansis Brammanis2015-08-244-35/+30
| | | | https://github.com/mapbox/mapbox-gl-js/pull/1261
* fix symbol collision detection in perspective viewAnsis Brammanis2015-08-242-4/+4
|
* don't use certain STL functionsKonstantin Käfer2015-08-043-4/+4
| | | | 
some functions defined in <cmath>, as well as std::to_string aren't available on GNU's STL for some platforms, e.g. Android
* Replace size() with empty() whenever possibleBruno de Oliveira Abinader2015-07-293-3/+3
| | | | | | Before C++11, std::list's implementation of size was O(n). It should be all O(1) now, but it is probably still a good idea to use empty() to emphasize the intend.
* Use the observer pattern for GlyphPBF loadingThiago Marcos P. Santos2015-07-174-139/+135
| | | | | | | This will make the code a lot more clear and it will also move how parsing is initiated to the GlyphPBF class, to be initiated after the request, like we do for other resources.
* Add docs to WorkQueue and GlyphStoreThiago Marcos P. Santos2015-07-172-2/+13
|
* Make Glyph requests from the Map ThreadThiago Marcos P. Santos2015-07-162-73/+65
| | | | | | | | | | | Now the requests are bound to the Map Thread loop and we can cancel it quickly when shutting down or changing style. Previously requests were made by the workers and we would have to wait them to finish because workers are destroyed before the GlyphStore. This was giving the impression that the application was frozen (in fact it was, momentarily).
* Updates to labels along linesNicki Dlugash2015-07-094-18/+37
| | | | | | | | | | | | Added a filter to remove anchors with the same text that are too close to each other. Updates to spacing and offset of anchor placement along lines: Takes into account icon size for calculating label length. Recalculates spacing for long labels. Adjusts offsets to first anchors if line is continued from outside the tile boundary.