-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot convert from initializer list to vector #8
Comments
It's because you use the newer version of c++ you need to change the fa_AlphabetsAllForms collection in FarsiType.cpp to this: And make sure that you are using utf-8 in your project. const std::vector<std::vectorstd::string> fa_AlphabetsAllForms = |
Thanks! std::string ArabicText = FarsiType::ConvertToFAGlyphs("السلام عليكم"); it just displays a bunch of question marks "?" |
You need all of this for Arabic/Farsi and Hebrew if it's still show you questions try to use other font. const ImWchar ranges[] = I am using this font "GoNotoKurrent-Regular.ttf" it's working with Arabic: https://github.com/satbyy/go-noto-universal/releases/tag/v7.0 |
const ImWchar ranges[] = io.Fonts->AddFontFromFileTTF("C:\Users\ctrl\Downloads\GoNotoKurrent-Regular.ttf", 17.f, 0, ranges); it crashed with a "Access violation" on the "AddGlyph" function. |
The problem is in the file name the font name is "GoNotoCurrent-Regular.ttf" and your GoNotoKurrent-Regular.ttf" you are using K on Current and not C. |
the file itself named "GoNotoKurrent-Regular.ttf". I was wondering if you could send me a working sample/example. |
//... |
for some weird reason, I've tried your code there no crash however the question marks is still there... |
add me on discord so we can have direct contact. my disocrd is: moat. (dot "." included). |
so I just implemented the farsitype files into my project and the const std::vector<std::vectorstd::wstring> fa_AlphabetsAllForms list has an error Severity Code Description Project File Line Suppression State Details
Error C2440 'initializing': cannot convert from 'initializer list' to 'std::vector<std::vector<std::wstring,std::allocatorstd::wstring>,std::allocator<std::vector<std::wstring,std::allocatorstd::wstring>>>' ImGui Loader base farsitype.cpp 4
I do gt some other errors when the charset is set to unicode.
Help, thanks!
The text was updated successfully, but these errors were encountered: