View Single Post
KiwiBlaze
Member
 
Join Date: Mar 2015
Posts: 61

Old January 14th, 2019, 11:18 AM
Quote:
Originally Posted by Conandy View Post
It actually seems that there is a hidden or invisible character inserted at the beginning of the snippet, because I can right arrow past this one or two characters. It takes two right arrow key presses, the first doesn't move the cursor at all and the second press moves it once, and then I can start typing and the font will be correct, but this leaves a blank space at the beginning.
Depending at which point you are using Split Snippet, depends on the characters you get, but are always at least one each of the following, and not always in this order. This has been true for as long as I have been using Realm Works.
U+0020 : SPACE [SP]
U+200B : ZERO WIDTH SPACE [ZWSP]
Lets analyse what happens when using Split Snippet (Ctrl + Return).
With a space directly after the cursor, Realm Works turns that space into a ZWSP. Then moves the text into the snippet. At the end of that new snippet, another ZWSP is placed.

From what I can tell, this has always been true.

Like you have learned, adding a new snippet, or Ctrl + T, doesn't have this issue, but does still have characters present in that space. An educated guess would likely see me saying it could be a "Paragraph Delimiter" (¶), but I currently have no evidence of this.

Word is incorrect when it calls it a Nonbreaking Space, and that can be proved by using a UNICODE character analysing tool (such as What is it!).

"Your word processor assumes that a word space marks a safe place to flow text onto a new line or page. A nonbreaking space is the same width as a word space, but it prevents the text from flowing to a new line or page."



Practical Typography, has a great write up on why you would use a NBSP in your document.

And a great review of a ZWSP can be found at Smashing Magazine

Your issue of why is the font changing is simple, Comic Sans MS doesn't have the ZWSP support and cannot display that font. Realm Works can try and find a font for you and that is what it does. My assumption is that Century Schoolbook also doesn't support this character. Part of Realm Works tries to find a font similar too the one in use and has this character, which is why the fonts are different. It should - in theory - happen to all snippet styles when using the same fonts.

Side note, this is also why I spent literally days trying to find a font that I can use in Realm Works, and posted this thread - Stopping Elements may not work

How to fix this? Find a font that supports the Zero Width Space. The standard font suggested to ensure font rendering in English is Arial Unicode MS from what I have seen.

Last edited by KiwiBlaze; January 14th, 2019 at 11:29 AM. Reason: Century Schoolbook, Arial Unicode MS, Stopping Elements Error Popup
KiwiBlaze is offline   #3 Reply With Quote