Bug 291234 - Print option is disabled when you open a font in KFontView
Summary: Print option is disabled when you open a font in KFontView
Status: CONFIRMED
Alias: None
Product: kfontview
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Chakra Linux
: NOR normal
Target Milestone: ---
Assignee: Craig Drummond
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-11 01:34 UTC by André Marcelo Alvarenga
Modified: 2024-06-01 13:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Print option disabled (143.63 KB, image/png)
2012-01-11 01:34 UTC, André Marcelo Alvarenga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description André Marcelo Alvarenga 2012-01-11 01:34:49 UTC
Created attachment 67681 [details]
Print option disabled

Version:           unspecified (using Devel) 
OS:                Linux

 

Reproducible: Always

Steps to Reproduce:
In Dolphin:

Right-click on any font file.
Choose "Open with KFontView"


In SystemSettings:

Open "Font Management"
Choose "Scan for Duplicate Fonts..." (You must have at least a duplicate)
Select a duplicate font and right-click on it.
Choose "Open in Font Viewer"


Expected Results:  
Print button enabled.
Comment 1 Craig Drummond 2012-01-11 19:52:40 UTC
The fontviewer can only print fonts that are installed, hence clicking on a font from dolphin does not enable the print button.

The reason for the disabled print button when called from the duplicates dialog, is that again the fontviewer is passed a path to the font file, not just the font name (which happens if you view from the main font installer list). I agree this is suboptimal, but... Qt can only print installed fonts, and when you click on the 'open in fontviewer' from the duplicates dialog, it is to check the difference between two font files that have the same font name.

If the print button was enabled here, it would be impossible to know which of the duplicate fonts was to be printed. The reason being, that when a font is printed it is requested from Qt using its font-name, not the filename. So, say you had two fonts called 'Wibble' - but both were in fact very different. Now when you use kfontview from the duplicates dialog, you can see the difference between the two font files. But to print, Qt will just choose the first installed font with the family 'Wibble'
Comment 2 Justin Zobel 2021-03-09 23:51:12 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 3 Fabian Arndt 2024-06-01 13:52:25 UTC
The problem still exists.
The install button is disabled if the font is already installed.
So it should be possible to enable the print button, since there is already some kind of check. There should be a font version check though.