Desktop app and unicode characters

  1. 8 weeks ago

    Hey,
    I am using Chr( 11165 )+Chr( 11167 ) in my app.
    In some windows machines these characters simply show up as empty bars (chr is unavailable)
    How can I be sure the characters are available ? and what options do I have to show up/down arrows ? (other than creating an icon)

    Thanks
    R

  2. David G

    Oct 18 Pre-Release Testers, Xojo Pro

    On Windows, characters will only show up if your current font supports that character. Looking at this link, very few fonts support the arrow you have chosen:
    https://www.fileformat.info/info/unicode/char/2b9d/fontsupport.htm

    Here's a different arrow with much better font support:
    https://www.fileformat.info/info/unicode/char/2b06/fontsupport.htm

  3. Thanks David. I'll follow your advice.
    R

  4. David C

    Oct 19 Pre-Release Testers, Xojo Pro Derby, ITM

    I use these as they show up in Xojo macOS and Windows apps:
    ⬇︎ ⬅︎ ➡ ➜ ⬆︎

    ☑ ☒ ☐

  5. Richard D

    Oct 19 Pre-Release Testers, Xojo Pro Europe (UK, London)

    @David C I use these as they show up in Xojo macOS and Windows apps:
    ⬇︎ ⬅︎ ➡ ➜ ⬆︎

    ☑ ☒ ☐

    are those unicode??? how do u put them on a bevelbutton??

  6. Emile S

    Oct 19 Europe (France, Strasbourg)

    Copy / Paste from the forum, they are characters.

  7. Dave S

    Oct 19 San Diego, California USA

    &uXXX where XXX is the Hex value of the unicode character
    sometimes you might have to change the fontname, I found "Menlo" seems to render most of what I have needed

  8. Richard D

    Oct 19 Pre-Release Testers, Xojo Pro Europe (UK, London)

    @Dave S &uXXX where XXX is the Hex value of the unicode character
    sometimes you might have to change the fontname, I found "Menlo" seems to render most of what I have needed

    Does Arial or System font show the characters??

  9. Dave S

    Oct 19 San Diego, California USA

    try it

  10. Richard D

    Oct 19 Pre-Release Testers, Xojo Pro Europe (UK, London)

    just try it with System and it work.

  11. Jason P

    Oct 19 Xojo Inc Texas

    Just be aware that on macOS the font fallback system is different than on Windows and often when one font does not contain the glyph the system will fall back to a related font in a similar family that does. This does not occur on Windows in the same way so if the font doesn't contain the glyph you may get different results.

  12. 7 weeks ago

    Richard D

    Oct 20 Pre-Release Testers, Xojo Pro Europe (UK, London)

    it look nice on the mac osx on a pushbutton but look really ugly on window

or Sign Up to reply!