qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.05k stars 2.92k forks source link

OpenType feature support for better cartography #32733

Open Chaz6 opened 4 years ago

Chaz6 commented 4 years ago

Feature description. Please consider supporting OpenType features:-

There are others, but I think these three would have the most impact on cartographic presentation. As with other options, these could be data-driven (enabled or disabled)

Additional context For more information on opentype features, the following urls have more information:- https://typofonderie.com/font-support/opentype-features/ https://en.wikipedia.org/wiki/List_of_typographic_features#OpenType_typographic_features https://ilovetypography.com/OpenType/opentype-features.html

andreasneumann commented 4 years ago

Hi @Chaz6

This all depends on support in qt5. If qt5 supports it, then it would be realistic to add such features, if not, it would have to be added in qt first.

If you can help to investigate if the desired features are supported in qt, it would help.

We recently started collaborating with company KDAB to do fixes and improvements in qt5 upstream. So we are slowly trying to improve collaboration with qt - because - a lot in QGIS depends on availability in qt.

jgrocha commented 4 years ago

As far as I know, QGIS supports OpenType fonts (provided by the underneath software layers).

For testing OpenType fonts, I used the Libertinus font. In the following screen shot, you can see the typical fi ligature in the word filipe.

QGIS with OpenType ligatures

I've downloaded another OpenTyle font, installed it and created a label with that font. It works.

QGIS with OpenType

@Chaz6 Do you want to turn on/turn off OpenType features for each font? That's the kind of features you are looking for, like we can do in LibreOffice?

Chaz6 commented 4 years ago

@jgrocha yes I think it would be useful to be able to have a bit more control, such as choosing stylistic sets. I could have a go at writing a patch.

github-actions[bot] commented 3 years ago

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue. In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue. If there is no further activity on this issue, it will be closed in a week.

lliehu commented 10 months ago

It looks like Qt 6.6 (to be released later this year) has added support for OpenType features to QFont, according to these sources:

Perhaps this would enable support in QGIS, after QGIS can otherwise depend on Qt 6.