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) » Sort font face list
Sort font face list [message #8923] Sun, 08 April 2007 01:57 Go to next message
mubeta is currently offline  mubeta
Messages: 77
Registered: October 2006
Member
Hi,

how to sort the font face list? Using Font::GetFaceName(q), where q is the incremental index, the list of face name look like as "random name".
I hope can get the list like: A.., b.., c.., d.., ..., z...

Mauro Bottizzo.
Re: Sort font face list [message #8930 is a reply to message #8923] Sun, 08 April 2007 14:01 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Load it to the Vector<String> and sort it.

Of course, if you want to keep the index, you will need something better than String, like:

struct {
int fonti;
String name;
};

or, alternatively, if what you want is to fill some DropList with fonts, you can use GetSortOrder.

Mirek

[Updated on: Sun, 08 April 2007 14:03]

Report message to a moderator

Previous Topic: how to solve the error "a namespace with this name does not exist"
Next Topic: Comments requested
Goto Forum:
  


Current Time: Thu Mar 28 18:03:11 CET 2024

Total time taken to generate the page: 0.01057 seconds