mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:22:45 +00:00 
			
		
		
		
	 5c02b960ab
			
		
	
	
		5c02b960ab
		
	
	
	
	
		
			
			Instead of assuming that the first font in the cascade font list will have a glyph for space, we need to find it in the list taking into account unicode ranges.
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			443 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			443 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
| <head>
 | |
|     <link rel="match" href="reference/space-glyph-width-ref.html" />
 | |
|     <style>
 | |
|         @font-face {
 | |
|             font-family: 'HashFont';
 | |
|             src: url('assets/HashSans.woff');
 | |
|             unicode-range: U+0;
 | |
|         }
 | |
| 
 | |
|         .text {
 | |
|             font-family: 'HashFont', 'SerenitySans';
 | |
|             font-size: 100px;
 | |
|         }
 | |
|     </style>
 | |
| </head>
 | |
| <body>
 | |
|     <div class="text">A B</div>
 | |
| </body>
 | |
| </html>
 |