Giter Site home page Giter Site logo

Comments (6)

jonathanstowe avatar jonathanstowe commented on June 27, 2024

Hi,
I think that it's something that would have to be implemented for all widgets by implementing the pango font stuff:

https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-set-font-options

because that will require a whole bunch of other stuff regarding Pango to be implemented I don't think it's something that will get done immediately.

The only interface regarding the font on the text view is toggling between proportional and monospace:

https://developer.gnome.org/gtk3/stable/GtkTextView.html#gtk-text-view-set-monospace

That is quite doable and I'll have a look today.

Hope that helps.

from gtk-simple.

jonathanstowe avatar jonathanstowe commented on June 27, 2024

I am however going to do #28 before adding any more properties to the interface.

from gtk-simple.

finanalyst avatar finanalyst commented on June 27, 2024

I implemented pango for Label, see MarkUpLabel.

Very simple changes to Label. But I don't know how general these change can be

from gtk-simple.

finanalyst avatar finanalyst commented on June 27, 2024

Ignore last remark. My bad. Marked label is just a call to gtk_marked_label. It uses pango internally, but can't be generalised.

from gtk-simple.

finanalyst avatar finanalyst commented on June 27, 2024

With GTK 4 launched, this enhancement for GTK 3 require a huge amount of effort. Not cost effective, so closing. MarkUpLabel allows for coloured text and should meet most font type issues.

from gtk-simple.

Xliff avatar Xliff commented on June 27, 2024

Please note that there is p6-Pango. It's still experimental, but I have found it workable enough. Would be nice to get more eyes on it so I can find and eliminate any bugs that are there.

from gtk-simple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.