Hi,
We’re trying to use the Noto Sans CJK JP Bold and Noto Sans CJK JP Light fonts from google available here: https://www.google.com/get/noto/#sans-jpan
However, we’ve noticed two problems when rendering the document:
1) The top of the text is being cutoff no matter what font size is set. It looks like the rendered character is a little bit too big, and gets cut off.
2) The Noto Sans CJK JP Light font has some rendering issues with the kanji. It is overlapping two different characters even though the text is the same in all the lines.
static void CutoffText()
{
// Added document
var doc = new Document();
var page = doc.Pages.Add();
page.PageInfo.Width = PageSize.PageLetter.Width;
page.PageInfo.Height = PageSize.PageLetter.Height;
page.PageInfo.Margin = new MarginInfo(27, 27, 27, 27);
var newText1 = new TextFragment(“THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG 1234567890 ひらがな カタカナ 漢字”);
newText1.TextState.Font = FontRepository.FindFont(@“Noto Sans CJK JP Bold”);
newText1.TextState.FontSize = 10;
var newText2 = new TextFragment(“THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG 1234567890 ひらがな カタカナ 漢字”);
newText2.TextState.Font = FontRepository.FindFont(@“Noto Sans CJK JP Light”);
newText2.TextState.FontSize = 10;
var newText3 = new TextFragment(“THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG 1234567890 ひらがな カタカナ 漢字”);
newText3.TextState.Font = FontRepository.FindFont(@“Noto Sans CJK JP Bold”);
newText3.TextState.FontSize = 6;
var newText4 = new TextFragment(“THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG 1234567890 ひらがな カタカナ 漢字”);
newText4.TextState.Font = FontRepository.FindFont(@“Noto Sans CJK JP Light”);
newText4.TextState.FontSize = 6;
page.Paragraphs.Add(newText1);
page.Paragraphs.Add(newText2);
page.Paragraphs.Add(newText3);
page.Paragraphs.Add(newText4);
doc.Save(“CutoffText.pdf”);
}