Custom font issues in admin-container CSS/HTML editor
User Joe_Fedric is experiencing a spacing problem with custom fonts in the .admin-container element. Despite modifying the letter-spacing attribute, the issue persists. Falco suggests that the editor may expect a mono-spaced font, which is why custom fonts are causing the issue.
Mittineague proposes that the !important flag might be causing the problem, but Joe_Fedric finds that removing it doesn’t make a difference. However, Falco suggests using a mono-spaced font as a solution, which Joe_Fedric implements by using a monospace flavor of Roboto and adding !important to force the editor to use the font.
The solution is to use a mono-spaced font, such as Roboto Mono, with the following CSS code:
Essentially, anytime I use a font with a different font width, I see misalignment in the editor panel. Modifying letter-spacing attribute doesn’t help. Only setting the default font allows for correct cursor placement. The two screenshots above show the same exact cursor placement.
Anyway to use custom fonts in the admin-container? I can switch it if no, but I really prefer Roboto over the system font.
Meh… I’d rather just force the font-family that works. When I refresh to ignore the custom style, most of my buttons, etc., are unclickable. I actually find that rather annoying, though it may be helpful for some specific custom CSS issues like *{display:none;} being added unintentionally or something silly like that.
This doesn’t specifically address the cursor placement issue in .admin-container, fwiw. Can I force the cursor to display in the correct location?