Skip to content

about the 'mlx_put_string' #97

Answered by W2Wizard
ThEWoLf882-42 asked this question in Q&A
Discussion options

You must be logged in to vote

The color could be potentially be changed by for instance applying some sort of multiplication to each pixel. The size however is fixed, font's are notorousliy difficult to handle.

If you truly want to be able to have your own font besides the default one given by MLX, you have to implement it on your own. Using a sprite sheet is a good start and then creating an image with the correct width and height to which you can copy paste the pixels to should work.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Obult
Comment options

@JellevanKraaij
Comment options

@JellevanKraaij
Comment options

Answer selected by ThEWoLf882-42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Question Further information is requested
4 participants