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 » Is there a way to get all character supported in a font with Font? (how to get all character supported by a font using Font?)
Re: Is there a way to get all character supported in a font with Font? [message #58411 is a reply to message #58308] Wed, 18 May 2022 10:44 Go to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
[quote title=Mountacir wrote on Fri, 15 April 2022 21:54]Hi,

I've been trying to get all code points in a font so i can preview them, but i couldn't do it with the Font Class.
I tried something like this but no luck.

char c;
String s;
for(int i = 1; i<1000;i++){
	if(fnt.HasChar(i)){
		
		c = i;
		s << c;
		
	}else {
		break;
	}
	
}
LOG(s);


Have you tried to remove break? Smile

Other than that, I think what you really need is IsNormal - that means that unicode codepoint is really in given font. HasChar will return true even if codepoint is rendered using multiple glyphs from the font or even being replaced by some glyph from some other font.
 
Read Message icon3.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: It can't dispay chinese characters properly
Next Topic: Clickable SetImage in Button
Goto Forum:
  


Current Time: Mon Sep 01 12:43:54 CEST 2025

Total time taken to generate the page: 0.05747 seconds