libtxt: fix some typos (flutter/engine#4206)

This commit is contained in:
Jason Simmons
2017-10-12 11:51:50 -07:00
committed by GitHub
parent df45191b54
commit 4419ecfa91
4 changed files with 5 additions and 5 deletions

View File

@@ -103,14 +103,14 @@ enum TextAlign {
///
/// For left-to-right text ([TextDirection.ltr]), this is the left edge.
///
/// For right-to-left text ([TextDirection.rtr]), this is the right edge.
/// For right-to-left text ([TextDirection.rtl]), this is the right edge.
start,
/// Align the text on the trailing edge of the container.
///
/// For left-to-right text ([TextDirection.ltr]), this is the right edge.
///
/// For right-to-left text ([TextDirection.rtr]), this is the left edge.
/// For right-to-left text ([TextDirection.rtl]), this is the left edge.
end,
}

View File

@@ -30,7 +30,7 @@ int main(int argc, char** argv) {
txt::SetFontDir(dir);
if (txt::GetFontDir().length() <= 0) {
FXL_LOG(ERROR) << "Font directory must be specified with "
"--font-directoy=\"<directoy>\" to run this test.";
"--font-directory=\"<directory>\" to run this test.";
return EXIT_FAILURE;
}
FXL_DCHECK(txt::GetFontDir().length() > 0);

View File

@@ -48,7 +48,7 @@ using GlyphID = uint32_t;
// paragraph->Paint(<someSkCanvas>, <xpos>, <ypos>);
class Paragraph {
public:
// Constructor. I is highly recommended to construct a paragrph with a
// Constructor. It is highly recommended to construct a paragraph with a
// ParagraphBuilder.
Paragraph();

View File

@@ -31,7 +31,7 @@ int main(int argc, char** argv) {
txt::SetFontDir(dir);
if (txt::GetFontDir().length() <= 0) {
FXL_LOG(ERROR) << "Font directory must be specified with "
"--font-directoy=\"<directoy>\" to run this test.";
"--font-directory=\"<directory>\" to run this test.";
return EXIT_FAILURE;
}
FXL_DCHECK(txt::GetFontDir().length() > 0);