U++ framework
Do not panic. Ask here before giving up.

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: 14290
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: Mon Apr 27 23:22:15 GMT+2 2026

Total time taken to generate the page: 0.00648 seconds