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.
[FIXED] FC_WEIGHT is too big. [message #40061] Fri, 31 May 2013 20:39 Go to previous message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

In my opinion, normal fonts is too bolded on X11 operating systems. We need to change FC_WEIGHT factor. Now, It is too big. I have enclose patch code (DrawTextX11.cpp - Line 27):

FcPatternAddInteger(p, FC_WEIGHT, font.IsBold() ? 160 : 80);


Insted of:

FcPatternAddInteger(p, FC_WEIGHT, font.IsBold() ? 200 : 100);


As You can see, I had shrunk two values about 20%. I had choosen this value, because 80 is maximum value for not bolded fonts. If We select bigger value. Letters such as: "j" or "y" will have problems with tails on some desktop enviroments like KDE when GTK backend is on. The first value for "real" bolded texts is only smaller proportionally and It can be bigger.

I have enclosed demonstrative images.

P.S.
Ubuntu problem with bold text after this patch will be history.

Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Sun, 30 June 2013 16:27]

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: Fri Mar 29 14:23:41 CET 2024

Total time taken to generate the page: 0.01599 seconds