-
Notifications
You must be signed in to change notification settings - Fork 165
Revise NonBreakingSpaceOverride to use Georgia
instead of base64 on the frontend
#697
Conversation
… the front end for lighter code.
I pushed 9fe2bf1, which fixes a small typo preventing this from kicking into action. For the most part, this PR works fine. But it does does some weird things to the text position and width of text fields: This shift occurs in both Chrome and Firefox for Mac. This may seem fixable, but it does make me a little nervous, especially at this late stage of the game. The current solution has no known bugs, and has been thoroughly tested. Before we change this again, I'd like to make sure we have a clear sense the issue is that we're aiming to solve. Are we trying to slim down the file size a little bit? Or is the problem just that we're using base64 encoding here, and that's hard to decipher? We do have a separate, webfont version of the font that we could theoretically call instead. We originally tried this in aeb424f, but went with base64 encoding because the cc @jasmussen, @iseulde, since you were both involved in the original solution in #463 |
I share Kjell's concerns here — let's be very intentional about every change we make.
Can you elaborate a little bit on this? Also, it might be good to mentally prepare ourselves for potentially looking at an alternative to Hoefler. What alternatives might work, if we keep encountering issues like these? |
@jasmussen So, this was an alternate take on the Seemed like we could use the
Replacing Hoefler Text isn’t off of the table but I’d prefer to revert back to the original It sounds like she’s suggesting something like this:
I’m gonna try it out (may need to use a different unicode character), but if it checks out, this would be preferable over the |
Nope that doesn’t work ^^ 😄 |
You'd still need to load a font with the character. Unfortunately there's no way to replace a character with another character of the same font. You need to replace it with the same character of a different font. So the only way is to use a local font or a font which contains just this one tile. Maybe there's ways to make the size smaller. It should be just one blank tile and some properties. |
You can also just not fix it on the front-end? |
There was an issue that needed a fix for the frontend, something with indented menus I think. |
Gonna go ahead and close this since we’re now reverting back to the original |
This change replaces the custom
base64
“Hoefler Text”
character with that of Georgia instyle.css
to optimize the CSS on the front-end.The
base64
character is needed in the editor to maintain consistent line-heights and prevent text from getting truncated while typing. On the frontend these negative effects are virtually undetectable since the text is not editable, so Georgia can be used instead.