Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [FIXED] FC_WEIGHT is too big.
Re: [X11 Font problems - Bug?] FC_WEIGHT is too big. [message #40121 is a reply to message #40120] Sat, 15 June 2013 17:45 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1076
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

I have made simply test:

Cout () << "FC_WEIGHT_NORMAL: " << FC_WEIGHT_NORMAL << "\n";
Cout () << "FC_WEIGHT_BOLD:   " << FC_WEIGHT_BOLD << "\n";


The return values for Kubuntu 13.04 is
FC_WEIGHT_NORMAL: 80
FC_WEIGHT_BOLD:   200


It seems that 80 constant for FC_WEIGHT_NORMAL looks ok and 100 is too high. On the other hand, 160 constant for bold fonts is too low.

I am not sure, but why we can't replace this line using FC_WEIGHT_NORMAL and FC_WEIGHT_BOLD constants? I have enclosed sample code:

FcPatternAddInteger(p, FC_WEIGHT, font.IsBold() ? FC_WEIGHT_BOLD : FC_WEIGHT_NORMAL);


P.S.
On Ubuntu 13.04 values are the same.

Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Sun, 16 June 2013 01:23]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Smtp: compiling error in smtp.h
Next Topic: [Win32 - FileSel - System Places Improvement] - Disk name
Goto Forum:
  


Current Time: Mon Apr 29 01:18:54 CEST 2024

Total time taken to generate the page: 0.02548 seconds