mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 02:42:44 +00:00 
			
		
		
		
	 67ceba2e6a
			
		
	
	
		67ceba2e6a
		
	
	
	
	
		
			
			The intent is to use these to autogenerate prototype declarations for Window and WorkerGlobalScope classes. And the spec links are just nice to have :^)
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			741 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			741 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| // https://html.spec.whatwg.org/multipage/canvas.html#textmetrics
 | |
| [Exposed=Window]
 | |
| interface TextMetrics {
 | |
|   // x-direction
 | |
|   readonly attribute double width; // advance width
 | |
|   readonly attribute double actualBoundingBoxLeft;
 | |
|   readonly attribute double actualBoundingBoxRight;
 | |
| 
 | |
|   // y-direction
 | |
|   readonly attribute double fontBoundingBoxAscent;
 | |
|   readonly attribute double fontBoundingBoxDescent;
 | |
|   readonly attribute double actualBoundingBoxAscent;
 | |
|   readonly attribute double actualBoundingBoxDescent;
 | |
|   readonly attribute double emHeightAscent;
 | |
|   readonly attribute double emHeightDescent;
 | |
|   readonly attribute double hangingBaseline;
 | |
|   readonly attribute double alphabeticBaseline;
 | |
|   readonly attribute double ideographicBaseline;
 | |
| };
 |