Bug #5236
open[error] "WCartesianChart: setAutoLayout(): device does not have font metrics (not even server-side font metrics)."
0%
Description
I am new to Wt. I am learning the Wt through examples and plan is to use Wt for IoT applications.
Wt Version: 3.3.6
OS: Ubuntu 14.04
Installed optional dependencies such as linharu, pango, firebrird from the Ubuntu 14.04 packages.
Built Wt successfully.
Chart Example:
Following error occurs while running the App.
[error] "WCartesianChart: setAutoLayout(): device does not have font metrics (not even server-side font metrics)."
I read a few issues reported in the Redmine, and compiled charts example with libharu-2.2.1. The error occurs even after building with libharu.
Observations in the browser: The legend on the chart is not visible completely.
Could you please suggest the fix for it?
Files
Updated by Maruthi Pathapati over 8 years ago
Wt was built Without libharu support.
I will be collect a bit more information on my setup and update the issue.
Updated by Maruthi Pathapati over 8 years ago
Maruthi Pathapati wrote:
Wt was built Without libharu support.
I will collect a bit more information on my setup and update the issue.
Updated by Maruthi Pathapati over 8 years ago
Rebuilt the Wt with the following options.
ENABLE_PANGO OFF
ENABLE_HARU OFF
Rebuilt the Charts Application.
However the issue was observed.
May be my setup has some issue.
Note: I tried the same in AWS EC2 instance and there is no problem in rendering the Chart example on a browser.
Updated by Koen Deforche over 8 years ago
- Status changed from New to Feedback
Hey Maruthi,
You indeed need Wt built with libharu. If somehow Wt wasn't built with libharu, then you will get this message.
CMake will indicate at startup what optional libraries are found and are going to be used.
I check the link, but that seems to be working fine?
Koen
Updated by Maruthi Pathapati over 8 years ago
Hi Koen,
Thank you.
Wt is a great tool for developing complex web apps.
Best Regards
Maruthi