Commit Graph

4803 Commits

Author SHA1 Message Date
Chris Loer
155804be4d [ios,macos] Remove dead/non-functioning font-weight and glyph metric code.
Add local font family to default iosapp configuration.
2017-12-11 10:43:00 -08:00
Chris Loer
e8daa84de6 [android] Tweak LocalGlyphActivity description to be a bit more specific than the title. 2017-12-11 10:43:00 -08:00
Chris Loer
f2d70aa890 [android] Fixups for LocalGlyphActivity 2017-12-11 10:43:00 -08:00
Asheem Mamoowala
bee60130d3 [android] Add Configuration hook for local ideograph font family and demo activity 2017-12-11 10:43:00 -08:00
Chris Loer
b4c781aef7 [core, macos, ios] Unit tests for LocalGlyphRasterizer
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.
2017-12-11 10:43:00 -08:00
Andrew Kitchen
b2f06677a7 [darwin, ios, macos] Introduces an MGLRendererConfiguration class
Instructions for enabling client-side rendering of CJK glyphs live in
this header, and this class provides the rest of the values needed for
instantiating the renderer on iOS and macOS.
2017-12-11 10:43:00 -08:00
Chris Loer
00ed34f7d7 [android] Android implementation of local CJK glyph rendering
- Draws bold version of glyph if font stack contains string "bold"
 - Not hooked up to global configuration yet
2017-12-11 10:43:00 -08:00
Andrew Kitchen
3713102005 [ios, macos] Adds support for specifying an ideographic font family name
Adding a MGLIdeographicFontFamilyName to the containing app's Info.plist
will result in CJK glyphs being rasterized on demand (#10522)
2017-12-11 10:43:00 -08:00
Chris Loer
cb380064bb [ios,macos] Darwin implementation of a CoreText-based LocalGlyphRasterizer.
- Changing font weight does not currently appear to be working.
 - Glyph metric extraction code not working; currently unused.
2017-12-11 10:43:00 -08:00
Chris Loer
1661af1cb4 [core] Enable local glyph generation using TinySDF.
- Platform-specific LocalGlyphRasterizer is responsible for deciding which glyphs to rasterize locally and for implementing the rasterization.
 - Default platform implementation doesn't locally generate any glyphs -> no behavior change
 - Unit test uses StubLocalGlyphRasterizer, which returns a single fixed bitmap for all CJK glyphs
 - Rename glyph_loader.test to glyph_manager.test
2017-12-11 10:43:00 -08:00
Jason Wray
4f31b07d09 [macos] Add Info.plist version keys 2017-12-07 19:01:12 -05:00
Jason Wray
627587694d [ios, macos] Append SDK version parameter to feedback URL 2017-12-07 19:01:04 -05:00
Jason Wray
c0ad7be388 [ios] Long-press attribution button to show SDK version 2017-12-07 19:01:04 -05:00
Asheem Mamoowala
f26c5ef2f0 [android] null check 2017-12-06 19:44:12 -08:00
LukasPaczos
d783611d1a Updated README for Arch Linux users 2017-12-06 20:21:58 +01:00
Tobrun
86fdb2682d [android] - build boba snapshots from master 2017-12-06 17:38:32 +01:00
Tobrun
c311e69e0e [android] - add FileSource activation/deactivation to MapSnapshotter, handle multiple deactivate scenario in FileSource (#10556) 2017-12-06 11:51:33 +01:00
Jordan Kiley
8f3cc3dbc4 [ios, macos] Rename the iOS and macOS SDKs (#10610) 2017-12-04 16:40:14 -08:00
Langston Smith
cb5dc2eed8 Android SDK renaming (#10609)
* changes in various markdown files

* more tweaks

* Updated attribution title
2017-12-04 08:19:47 -08:00
John Firebaugh
a623ff13ed Update gl-js submodule 2017-12-01 17:58:14 -08:00
Tobrun
7e6ca6793a [android] - handle destroying activity programmatically as part of theme switching (#10589) 2017-11-30 11:45:40 +01:00
Konstantin Käfer
8757164ac8 [build] standardize on -fvisibility=hidden for all targets
Enables -fvisibility=hidden for iOS and Linux, and adds a workaround for GCC 6.3-7.1
Adds a GCC 6 build
Enables diagnostics for C files
Fixes a shadow warning in parsedate.c
2017-11-29 17:31:33 +01:00
Konstantin Käfer
2eec5a1980 [core] move HeadlessBackend extension initialization code into Impl 2017-11-29 15:48:51 +01:00
Konstantin Käfer
335f04f7e1 [core] fold HeadlessDisplay into the headless RenderBackend implementation 2017-11-29 15:48:51 +01:00
Tobrun
ed5e009062 [android] - use concurrent lists for camera change listeners (#10542) 2017-11-29 12:26:52 +01:00
Andrew Kitchen
c178bd2d25 [darwin] Fixes CGImageRef leak when creating a map snapshot (#10585) 2017-11-28 14:51:30 -08:00
Andrew Kitchen
09b97e037c [darwin] Adjusts initializer body to avoid premature ivar usage (#10582) 2017-11-28 13:43:45 -08:00
Andrew Kitchen
a2817ff5ed [darwin, macos, ios] Renames CGImage creation function to imply +1 retain count (#10570) 2017-11-27 16:47:58 -08:00
Chris Loer
5da5ba7706 [core, ios, qt, android] Close race condition in RunLoop (issue #9620)
Because a message we queue from the foreground may cause the background to complete, exit, and tear down the AsyncTask, we have to block queue processing until we've finished our call to AsyncTask::send().
Broadening the scope of a mutex is scary, but I audited the code of our four implementations of AsyncTask and I don't see any way this could cause a deadlock.
2017-11-27 14:42:44 -08:00
Bruno de Oliveira Abinader
02166a1802 [core] Fix Qt4 on macOS 2017-11-27 15:54:01 -02:00
Thiago Marcos P. Santos
cf3357ea45 [qt] Use qWarning() for logging
This is the Qt default and it is thread-safe.
2017-11-24 01:30:39 -02:00
Bruno de Oliveira Abinader
43aefbffd0 [Qt] Update documentation 2017-11-23 15:36:26 +02:00
Bruno de Oliveira Abinader
aa5a2b2c87 [build] Added CircleCI macos-release-node{4,6} jobs 2017-11-23 14:13:02 +02:00
Tobrun
405d141b9e [android] - update bottom sheet example with popable fragment backstack (#10506) 2017-11-23 08:17:09 +01:00
Asheem Mamoowala
e2702c76ea [android] Use inherited javaPeer in CustomGeometrySource C++ peer 2017-11-22 13:56:38 -08:00
Asheem Mamoowala
f06ebcc967 [android] Reuse Java Source objects by holding on to a strong reference in the C++ peer. 2017-11-22 13:56:38 -08:00
Asheem Mamoowala
3067b77c65 [core, ios, macos] Implement unique_any and remove linb::any 2017-11-22 13:56:38 -08:00
Asheem Mamoowala
934fa4933c [android] Add Grid source sample for Custom Geometry Source 2017-11-22 13:56:38 -08:00
Asheem Mamoowala
eb6de2c434 [android] Bindings for Custom Geometry Sources 2017-11-22 13:56:38 -08:00
Jesse Crocker
7c6ede6bb3 [ios,macos] Add MGLComputedShapeSource example to demo apps 2017-11-22 13:56:38 -08:00
Asheem Mamoowala
246417ef24 [ios, macos] Implement MGLComputedShapeSource binding for CustomGeometrySource 2017-11-22 13:56:38 -08:00
Jesse Crocker
b2925e71ac [darwin] Abstract ShapeSource interface 2017-11-22 13:56:38 -08:00
Asheem Mamoowala
acae193861 [core] Custom Geometry Sources 2017-11-22 13:56:38 -08:00
Tobrun
e3f1d8e3a0 [android] - harden MarkerView integration by checking for null bitmap (#10532) 2017-11-22 18:46:31 +01:00
Tobrun
59a8fd2ff8 [android] - activate filesource to list offline regions (#10531) 2017-11-22 17:08:23 +01:00
Tobrun
d46641cad6 [android] - use TextureView for ViewPager carousel (#10519) 2017-11-21 20:33:13 +01:00
Fredrik Karlsson
dda87bbecd [ios] update constraints when updating content inset 2017-11-20 21:07:14 +01:00
Bruno de Oliveira Abinader
aaffe3c0e3 [build] Added CircleCI macos-debug-qt5 job 2017-11-20 19:45:18 +02:00
Ivo van Dongen
7dabec61b6 [android] Enable map rendering when app is paused 2017-11-20 17:30:24 +02:00
Chris Loer
8cfeae9e45 [core] Remove ignores for passing tests.
Update ignore links to specific issues.
Bump mapbox-gl-js version to get latest text-pitch-spacing test.
2017-11-17 10:05:15 -08:00