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 |
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 |
|
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
|
|
|
Goto Forum:
Current Time: Thu Mar 28 18:03:11 CET 2024
Total time taken to generate the page: 0.01057 seconds
|