Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Sometimes you want to display text in Far East language font e.g. Japanese, Chinese, Thai, etc. Aspose.Cells provides TextOptions.GetFarEastName() property that can be used to specify the font name of Far East language. Besides, you can also specify the Latin font name using TextOptions.GetLatinName() property.
The following sample code creates a text box and adds some Japanese text inside it. It then specifies the Latin and Far East font names of the text and saves the workbook as output Excel file. The following screenshot shows the Latin and Far East font names of the output text box in Microsoft Excel.

#include <iostream>
#include "Aspose.Cells.h"
using namespace Aspose::Cells;
using namespace Aspose::Cells::Drawing;
int main()
{
Aspose::Cells::Startup();
Workbook wb;
Worksheet ws = wb.GetWorksheets().Get(0);
int idx = ws.GetTextBoxes().Add(5, 5, 50, 200);
TextBox tb = ws.GetTextBoxes().Get(idx);
tb.SetText(u"\u3053\u3093\u306B\u3061\u306F\u4E16\u754C");
tb.GetTextOptions().SetLatinName(u"Comic Sans MS");
tb.GetTextOptions().SetFarEastName(u"KaiTi");
wb.Save(u"outputSpecifyFarEastAndLatinNameOfFontInTextOptionsOfShape.xlsx", SaveFormat::Xlsx);
std::cout << "Textbox created successfully!" << std::endl;
Aspose::Cells::Cleanup();
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.