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 » Draw, Display, Images, Bitmaps, Icons » What is the U++ way to replace a missing font glyph?
Re: What is the U++ way to replace a missing font glyph? [message #54314 is a reply to message #54311] Mon, 22 June 2020 20:42 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14262
Registered: November 2005
Ultimate Member
Oblivion wrote on Mon, 22 June 2020 17:20
Hello Mirek,

Quote:

Generally, it would probably be more simple to just keep the list updated...


What I have in my mind can be summarized as follows:

1) Make the same list dynamic (using a vector maybe?)
2) Accordinly, add global functions to manipulate or query the list on demand.
3) Keep the existing code as intact as possible.

Basically, it is a global list management.

For example (just to give an idea)

void AddFallbackFont()
void RemoveFallbackFont()
void InsertFallbackFont()
void ResetFallbackFonts() // Always resets the list to U++ defaults.
const Vector<>& GetFallbackFonts() // Not sure about this one, but may be used to fill font lists in UI, if needed;


Frankly I don't really care about emojis or icons. The "modern terminal emulation scene" is a very interesting and weird habitat, but what I really need is some special fallback fonts when a terminal connection requires font adjusting depending on the environment over a remote (SSH) connection, for example.

Besides U++ apps in general can benefit from this.

My main concern would be performance (though the impact of using a dynamic list should be negligable) and the potential concurrency problems these functions may bring in.

What do you think?

Best regards,
Oblivion


I think that whatever fonts you might add by AddFallbackFont, you can have in the list already... Smile

I mean, how are you going to use this?

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Paint problems when using transparency
Next Topic: [SOLVED] Simple example for DrawPainter::Path
Goto Forum:
  


Current Time: Thu Jun 26 21:00:27 CEST 2025

Total time taken to generate the page: 0.04145 seconds