Project

General

Profile

Bug #5236

[error] "WCartesianChart: setAutoLayout(): device does not have font metrics (not even server-side font metrics)."

Added by Maruthi Pathapati about 6 years ago. Updated about 6 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/04/2016
Due date:
% Done:

0%

Estimated time:

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

Screenshot from 2016-09-04 15-33-13.png (63.6 KB) Screenshot from 2016-09-04 15-33-13.png Maruthi Pathapati, 09/04/2016 02:21 PM
#1

Updated by Maruthi Pathapati about 6 years ago

Wt was built Without libharu support.

I will be collect a bit more information on my setup and update the issue.

#2

Updated by Maruthi Pathapati about 6 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.

#3

Updated by Maruthi Pathapati about 6 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.

#5

Updated by Koen Deforche about 6 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

#6

Updated by Maruthi Pathapati about 6 years ago

Hi Koen,

Thank you.

Wt is a great tool for developing complex web apps.

Best Regards

Maruthi

Also available in: Atom PDF