[term] Basic fixups for term
Updates term's component manifest to make sense and fixes up the
FontProvider call to pass validation.
Test: run term
Change-Id: Ibd2514c02ac72be4d498485eda40c14c9dc0becb
diff --git a/app/term/BUILD.gn b/app/term/BUILD.gn
index 224c91e..af55534 100644
--- a/app/term/BUILD.gn
+++ b/app/term/BUILD.gn
@@ -35,6 +35,7 @@
"//garnet/public/lib/fxl",
"//garnet/public/lib/ui/input/cpp",
"//garnet/public/lib/ui/scenic/cpp",
+ "//third_party/freetype2",
"//third_party/libteken",
"//third_party/skia",
"//topaz/examples/ui/lib:skia_fonts",
diff --git a/app/term/meta/term.cmx b/app/term/meta/term.cmx
index f39f928..b725eae 100644
--- a/app/term/meta/term.cmx
+++ b/app/term/meta/term.cmx
@@ -3,6 +3,17 @@
"binary": "bin/app"
},
"sandbox": {
- "features": [ "deprecated-all-services", "shell" ]
+ "dev": [
+ "misc/ptmx"
+ ],
+ "features": [ "shell" ],
+ "services": [
+ "fuchsia.fonts.Provider",
+ "fuchsia.process.Launcher",
+ "fuchsia.process.Resolver",
+ "fuchsia.tracelink.Registry",
+ "fuchsia.ui.scenic.Scenic",
+ "fuchsia.ui.viewsv1.ViewManager"
+ ]
}
}
diff --git a/app/term/view_controller.cc b/app/term/view_controller.cc
index 1e8f838..b9703b4 100644
--- a/app/term/view_controller.cc
+++ b/app/term/view_controller.cc
@@ -39,6 +39,7 @@
fuchsia::fonts::Request font_request;
font_request.family = "RobotoMono";
+ font_request.language = fidl::VectorPtr<fidl::StringPtr>::New(0);
font_loader_.LoadFont(
std::move(font_request), [this](sk_sp<SkTypeface> typeface) {
FXL_CHECK(typeface); // TODO(jpoichet): Fail gracefully.