How To Use Arial Unicode Ms Font

1 view
Skip to first unread message

Elwanda Menhennett

unread,
Aug 5, 2024, 12:40:10 AM8/5/24
to groupfecpoaxpat
JavascriptAPI 4.1 : when adding a label grapgic layer in offline maps locally deployed and using text symbol, the label is not shown and it gives an error as mapview-invalid-resource, couldn't find font arial-unicode-ms-regular. falling back to Arial Unicode MS Regular. No matter what font family you set it aslways show this error. and lebels are never shown.

This is when trying to use the DistanceMeasurement2D and AreaMeasurement2D widgets. The graphics are not drawing correctly on the map when using the widgets. This is the standard map view, not using a webmap.


I recognize this is old, and may not even be the same issue. But in case it is helpful for anyone else. I was having the same issue as JoshKing and (sort of related to the OP's issue) RE font error. When looking at network traffic looked like I was getting a 403 when the API was trying to call -unicode-ms-regular/0-255.pbf to get the font for the measure widget's labels.


LibreOffice is a Unicode based applications, so all the fonts are Unicode. Arial is available with LibreOffice and can be selected directly, it is not called Arialuni.ttf. On my system there are five arialxxx.ttf fonts. I assume that you are using Windows and your system may not be set up to use Unicode characters directly. Which particular Unicode characters / languages do you wish to access? There are over 128,000 Unicode characters. As you can imagine few fonts will contain them all as they would be enormous and inefficient. However, on my LibO system all the characters are available spread over a number of fonts.


Perhaps you need the font with MS office. LibreOffice on my Linux-Mint system has a choice of fonts depending on the language chosen and no need for an Arialuni whose shape will be optimised for the Latin alphabet. @Rosalie has not said which languages she needs the characters for, or perhaps it was just a general enquiry.


I can't help you much since I don't have any iTextSharp experience but I can see from your original screenshot that the font is using ANSI encoding. You will need to get this changed to UTF-8 (for example) to handle the higher codes.


To the best of my knowledge, Unicode is not officially supported in LabVIEW. This doesn't mean Unicode won't work, it just means National Instruments does not have any dedicated resources and can only offer limited support. Your best bet is still the A List of Tips and Tools for using Unicode in LabVIEW Developer Zone article. Make sure to follow the detailed steps listed before going straight for the attached VIs. The only other article I found that may be pertinent to displaying Unicode is Displaying Non-English Characters in LabVIEW.


I've sen other posts that you have a new version using unicode, so can you point me in the right direction as to how you got this to work? I have a unicode font and set up the Identity-H encoding, but the PDF just doesn't want to display the characters correctly. I have tried the \u codes and it just prints out the literal string.


A complete example is the new version of the library... I am not sure if I will release this version, but i am willing to give you some information.



What do you want to do exactly?



Which font do you want to use?



Which direction of writing (left to right or right to left)?


We have a project that could requires us to export a PDF report in languages using non-Latin characters. Does PBI Report Builder support this with a universal unicode font that can handle non-Latin characters? I keep seeing Arial MS Unicode while researching about this but the font is nowhere to be found in the font list of PBI Report Builder. Does anyone know which font I can use in this case that is supported in both PBI Report Builder desktop app and the server application? Or is there any other way I can go about resolving this?


Edit: I tried creating a report with text in Mandarin and Japanese and they rendered properly when viewed in a browser (presumably since it can handle these natively) however when exported to PDF, the characters are not rendered properly:


Hi Chenwu, is there a page somewhere that lists the suggested (natively installed) font for each language? We are possibly looking at supporting several other languages aside from Mandarin and Japanese.


There may be a work around available, depending on the letters&numbers needed in subscript/superscript. JMP is capable of displaying unicode characters. To display a specific unicode character, determine the code for it and then preceed it with "\!U". For example, water is H2O, but it would be best to display it with a subscript 2. Unicode for subscript 2 is "2082', so to get that effect, I can replace the 2 in H20 with "\!U2082". Here is an example:


Consider modifying the fonts in preferences to one that includes unicode characters if the code displays a box instead of the desired subscript 2 symbol. Unfortunately, this solution does not work for all letters and numbers, since not all letters and numbers have a unicode subscript/superscript version.


This is really strange. Did JMP developers not think about this? Other softwares (MATLAB, Origin, etc and even Excel) can let you do it pretty easily. I think JMP should provide easy fixes for this kind of trivial issues. Thanks anyway !! Probably have to think around it to address the issue some other way.


@MachineCapybara we hear your frustration. As one of the product managers for JMP, I encourage you to go to the JMP Wish List on the User Community and enter this as a new feature request. We are addressing new feature requests that come through the Wish List in a more consistent and systematic way going forward, and I promise it will be considered and addressed in a reasonable time frame.

3a8082e126
Reply all
Reply to author
Forward
0 new messages