Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Font character issue on MacOS #79

Open
CallumHoward opened this issue May 4, 2019 · 2 comments
Open

Font character issue on MacOS #79

CallumHoward opened this issue May 4, 2019 · 2 comments

Comments

@CallumHoward
Copy link

Hi,

I believe I have found an issue with font rendering on MacOS. The same code works fine on Windows 10. The issue is that symbols are rendered as questions marks when a font is loaded from a file path. Here is a screenshot of the problem:
Screen Shot 2019-05-04 at 1 38 50 pm
As you can see, the period (.) character is rendered as a question mark. I tested other common ascii symbols, some of them work and some of them don't.

My setup:
libcinder on master (a6dc85ba1)
MacOS 10.14.4
MacBook Pro 2012, NVIDIA GeForce 660m/Intel HD 4000

Steps to reproduce:

  1. Change code to the following in the sample BasicApp.cpp on line 38
    auto config = ui::Options().font(getAssetPath("ProggyClean.ttf"), 12);
    ui::initialize(config);
    //ui::initialize();
  1. Copy ProggyClean.ttf (found in the imgui/misc/fonts directory) or another font to the assets folder.
@felixfaire
Copy link

i'm experiencing the same issue. Did you find a workaround in the end?

@felixfaire
Copy link

paul houx fixed it on his fork here if anyone else is stumbling upon this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants