summaryrefslogtreecommitdiff
path: root/test/text
Commit message (Collapse)AuthorAgeFilesLines
* [core] Add unit test for calculateTileDistancesAlexander Shalamov2019-12-181-0/+27
|
* [core] Add unit test for getAnchors and remove unused fieldAlexander Shalamov2019-12-182-2/+132
|
* [core] Add unit test for tagged string's image sectionsAlexander Shalamov2019-12-021-0/+17
|
* [core] Add unit tests for Formatted classAlexander Shalamov2019-12-021-0/+51
|
* [core] Shape images in labels at bucket zoom levelAlexander Shalamov2019-12-021-1/+4
|
* [core] Use new 'SymbolTextAndIcon' program to draw icons in textAlexander Shalamov2019-12-021-10/+130
|
* [core] Store 'sdf' flag in vertex attributeAlexander Shalamov2019-12-022-17/+25
|
* [core] Shape images in labels and create image quadsAlexander Shalamov2019-12-023-15/+21
|
* [core] Pass images and evaluated layout text size to shapingAlexander Shalamov2019-12-021-3/+7
|
* [core] Add evaluated images to styled text sectionsAlexander Shalamov2019-12-021-3/+3
|
* [render-test] Implement gfx probe for tracking gpu resourcesMikko Pulkki2019-10-301-1/+3
|
* [render-test] Implement fps benchmarking tests (#15803)Mikko Pulkki2019-10-221-3/+1
|
* [core] fix icon-text-fitKonstantin Käfer2019-10-141-190/+139
| | | | This fixes rendering by account for the 1px texture padding around icons that were stretched with icon-text-fit. We've added the 1px padding before, but didn't scale it accordingly when we are resizing the icon when it is stretched to fit the text. Adjusts the code to match the logic in GL JS.
* [core] Enable `text-offset` with variable label placementMikhail Pozdnyakov2019-09-032-2/+3
| | | | Port of https://github.com/mapbox/mapbox-gl-js/pull/8642
* [core][qt] Update unit tests and include Korean symbolsAlexander Shalamov2019-08-281-2/+18
| | | | | | | - Decrease pixelmatch tolerance for local glyph rasterizer - Add Korean symbols to test fixture - Fix ifdefs, as the QT and Apple related blocks were using same results - Add NotoSansCJK test for QT / Linux platform
* [core] Remove programCacheDir parameter from ProgramParametersAnder Conselvan de Oliveira2019-08-271-1/+1
| | | | | | Binary shader support has been removed in commit c2f974f2a573 ([core] Remove binary shader support). This left-over parameter is not used anywhere anymore.
* [core] fix mixed sdf + non-sdf icon rendering in one layer (#15456)zmiao2019-08-261-14/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] fix icon symbol rendring when sdf and non-sdf icon in the same symbol layer * fix build error * fix typo * revert renderableSegment change * simplify codes * fix build error * refine sdf icon flag * [core] fix mixed sdf + non-sdf icon rendering in one layer * remove iconstatus getter in stymbol bucket * fix review findings * provide bitwise operator for SymbolContent enum * use MBGL_MBGL_CONSTEXPR * add one missing update for sdfIcon * make renderer symbol type as enum
* Add unit test and fixtureAsheem Mamoowala2019-08-211-0/+51
|
* Correclty implement `canRasterizeGlyph` in unit test stubAsheem Mamoowala2019-08-211-1/+1
|
* [core] Fix combination of icon-text-fit with text-variable-anchors and ↵Alexander Shalamov2019-08-202-77/+95
| | | | text-writing-mode
* [core] Update shaping unit testAlexander Shalamov2019-08-131-1/+2
|
* [core] Update unit testsAlexander Shalamov2019-08-131-12/+12
|
* [core] Update CrossTileSymbolLayerIndex unit testAlexander Shalamov2019-07-231-1/+8
|
* [core] Symbol bucket uses shared layoutMikhail Pozdnyakov2019-07-221-4/+8
| | | | sizeof(SymbolBucket): 2296 -> 1024
* [core] Offset viewport center when edge insets are specifiedAleksandar Stojiljkovic2019-05-281-3/+47
| | | | | | | | | | | | | | | | | | | | | The change is implemented in TransformState::getProjMatrix, the rest of the code is making sure that existing API contracts stay and there are tests verifyingrendering and render query processing only items within screen and given tolerance around screen edges. MapView: don't bake edge insets into relalculated camera center. Keep edge insets as property of camera in TransformState (similar to pitch, zoom, bearing) independent from specified camera center. Interpolate edge insets in animation. iOS Demo app: "Turn On/Off Content Insets" pitch the camera and navigate to convenient location in Denver, where streets are parallel to cardinal directions, to illustrate viewport center offset when edge insets are set. Tests: ViewFrustumCulling: although Annotations are deprecated, queryRenderedFeatures related tests in Annotations would need to get ported and decided to add the edge insets related query tests next to them. Verify frustum culling (render+queryRenderedFeatures) With different camera and edge insets setups. TODO: port Annotations tests. Transform.Padding: Verify that coordinates take proper place on screen after applying edge insets. LocalGlyphRasterizer: verify text rendering when applying padding. Related to #11882: both use projection matrix elements [8] and [9]. Alternative approach to this was to increase and offset map origin so that the screen would be a sub-rectangle in larger map viewport. This approach has a drawback of unecessary processing the items that are outside screen area. Fixes #12107, #12728, navigation-sdks/issues/120
* [core] Add unit test for zero width space line breakingAlexander Shalamov2019-05-241-0/+95
|
* [core] Refactor HeadlessFrontend/Backend: GL separation and factory (#14692)Aleksandar Stojiljkovic2019-05-211-1/+1
| | | | | Refactor out HeadlessFrontend and HeadlessBackend gl independent code to gfx. Define gl::HeadlessBackend as subclass, instantiated by gfx::HeadlessBackend static factory method. GL dependent tests are still using gl::HeadlessBackend directly (not through gfx).
* [core] Create glyph manager at renderer construction timeMikhail Pozdnyakov2019-05-141-4/+4
| | | | Avoid unnecessary glyph manager presence check in `Renderer::Impl::()`.
* [core] Make the BackgroundScheduler a singletonThiago Marcos P. Santos2019-05-101-4/+2
| | | | | | | | | | - Do not carry it over everywhere as parameter, it is a shared instance anyway and the lifecycle is pretty much the app lifecycle from the moment we instantiate a map. - Rename to BackgroundScheduler because it is a Scheduler that will do tasks in the background, we don't make assumptions if it is a thread pool or a single thread. - Most importantly, remove the dependency from `core` on `platform`.
* [core] clang-tidy fixesKonstantin Käfer2019-04-051-2/+2
|
* [core] move GLContextMode to RendererBackendKonstantin Käfer2019-04-051-1/+1
|
* [core] Introduce variable text placement for point labels - Layout partMikhail Pozdnyakov2019-03-291-12/+12
|
* [core] Include pixelRatio property in MapOptionsSudarsana Babu Nagineni2019-03-281-4/+3
| | | | Move pixelRatio property from Map constructor to MapOptions.
* [core] Add setter/getter for size property in MapOptionsSudarsana Babu Nagineni2019-03-281-2/+2
|
* [core] Remove file source from public Map ctorBruno de Oliveira Abinader2019-03-201-6/+7
|
* [core] Get FileSource via UpdateParameters in Renderer::ImplBruno de Oliveira Abinader2019-03-131-1/+1
|
* [core] Add possibility of overriding paint properties inside format ↵Alexander Shalamov2019-03-131-5/+5
| | | | | | | | | | | | | | | | | | expression #14062 * [core] Add format override expression and formatted section to evaluation context * [core] Add textColor to TaggedString's formatted section * [core] Add FormatSectionOverrides and introduce overridable properties * [core] Populate symbol layer paint properties for text sections * [core] Add benchmark for style that uses text-color override * [core] Add unit test for FormatOverrideExpression * [core] Add unit test for FormatSectionOverrides
* [core] Add MapOptions to define properties of MapSudarsana Babu Nagineni2019-03-081-1/+2
| | | | | | To simplify the Map constructor, introduce MapOptions interface to define the properties that can be set on a Map.
* [Qt] Implement LocalGlyphRasterizerBruno de Oliveira Abinader2019-01-041-2/+7
|
* [Core] Ensure queryRenderedFeatures accounts for icon-rotate (#13105)Ryan Hamley2018-10-181-1/+1
|
* [core, test] Add BiDi unit testChris Loer2018-10-151-0/+90
| | | | | | - Port of arabic.test.js from mapbox-gl-rtl-text - Modify BiDi::getLine to remove trailing nulls in the event UBIDI_REMOVE_BIDI_CONTROLS causes the string to shorten. - Patch vendored ICU to avoid undefined undefined bit shifting behavior (triggered sanitizer failure)
* [test] Add unit test for TaggedString::trim()Chris Loer2018-10-151-0/+27
|
* [core] Initial implementation of 'format' expressionChris Loer2018-10-153-6/+6
|
* [core] Fix sort order for queryRenderedFeatures when features are filtered.Chris Loer2018-07-031-1/+1
| | | | Fixes issue #12104.
* [core] Introduce LanguageTag for parsing BCP 47 tagsChris Loer2018-07-031-0/+45
|
* [core] Only run placement for first layer per SymbolBucketChris Loer2018-05-031-10/+14
| | | | | | | | | Native version of mapbox/mapbox-gl-js#6548. Port of mapbox/mapbox-gl-js#6550. Prevents symbols that share the same layout properties from colliding against each other. Bump GL JS pin to get regression test. Rename "bucketName" -> "bucketLeaderID" to make it clearer what it represents.
* [core] Prevent symbols at the same zoom from sharing a crossTileID.Chris Loer2018-01-171-0/+74
| | | | | Port of GL JS PR #5994. Fixes issue #10844, which would allow multiple symbols in a tile to share the same crossTileID as one of their duplicate parent-tile symbols. Once the symbols shared a crossTileID, they would permanently remain "duplicates" of each other, even after increasing zoom level allowed the CrossTileSymbolIndex to distinguish between them.
* [core] port minor collision changes from -js (#10764)Ansis Brammanis2018-01-081-1/+45
|
* [macos,ios,android] Unit test fixupsChris Loer2017-12-111-17/+17
| | | | | | - Add explanatory comment - Remove dead/unused Android test - Increase image diff threshold to .05 to accommodate slightly different versions of "PingFang" between different test platforms
* [core, macos, ios] Unit tests for LocalGlyphRasterizerChris Loer2017-12-111-0/+86
| | | | | | Core test uses stubbed "glyph.pbf" without Chinese glyphs Darwin test relies on locally available "PingFang" font. Android test relies on locally available "Droid" font. 'expected.png' is NOT correct b/c I haven't figured out how to run unit tests on Android yet.