libtxt: fix some typos (flutter/engine#4206)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user