How to implement a custom font picker using JavaScript?