mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	 4c3f7d1290
			
		
	
	
		4c3f7d1290
		
	
	
	
	
		
			
			Adds multi-channel SDF font texture generation and rendering support. Adds per-font oversampling support. Adds FontData import plugins (for dynamic fonts, BMFonts and monospaced image fonts), font texture cache pre-generation and loading. Adds BMFont binary format and outline support.
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			554 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			554 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| 
 | |
| #pragma once
 | |
| 
 | |
| #include "BitmapRef.hpp"
 | |
| 
 | |
| namespace msdfgen {
 | |
| 
 | |
| /// Saves the bitmap as a BMP file.
 | |
| bool saveBmp(const BitmapConstRef<byte, 1> &bitmap, const char *filename);
 | |
| bool saveBmp(const BitmapConstRef<byte, 3> &bitmap, const char *filename);
 | |
| bool saveBmp(const BitmapConstRef<byte, 4> &bitmap, const char *filename);
 | |
| bool saveBmp(const BitmapConstRef<float, 1> &bitmap, const char *filename);
 | |
| bool saveBmp(const BitmapConstRef<float, 3> &bitmap, const char *filename);
 | |
| bool saveBmp(const BitmapConstRef<float, 4> &bitmap, const char *filename);
 | |
| 
 | |
| }
 |