Facer strips leading spaces on watch

I am working on a binary watch using a string to represent the whole number rather than one graphic per LED.
For seconds lets assume I is the on LED I Seconds would be:
$#Ds#>31?I: $$floor(#Ds#/16)%32%2==1?I: $$floor(#Ds#/8)%16%2==1?I: $$floor(#Ds#/4)%8%2==1?I: $$floor(#Ds#/2)%4%2==1?I: $$#Ds#%2==1?I: $

This works fine in the creator and previews but, on the watch leading spaces are stripped. This, as you can imagine, causes a wee bit of a problem.
An example here:

1 Like

I could make you purpose built font with outlined “letters” or small dot on empty character
image

4 Likes

Thanks. Another workaround to consider.
It’s actually a font I have in FontStruct. I added the LED tablets to the accented characters.
Silly to have to user them as a space it supposed to be empty and adding a small dot just adds clutter. Also not sure how small Fontstruct goes. Daft to have to ruin a whole font due to a bug, but here is where we are.
I had also considered starting the string with a dot as, for time and Seconds it would fall outside the mask and be invisible. Unfortunately the battery would make it visible.

Not sure how the outline would help though, unless you mean a separate set of outlined for AOD?

2 Likes

You do not need to ruin anything, just make one custom font for each purpose where the shapes come into normal characters instead some quirky accents.

3 Likes

I know. Just being petulant as I always try and keep overhead to a minimum. I don’t actually use this font for numbers and letters as it is too constrained and I cloned it to as a core to make better ones.
My head is still “But, but, it’s a space, not a wee dot”
Also I wonder if leading spaces are stripped by ascii code rather than content?? Time to test I suppose.

Reset all fonts to built in, save, reload page to clear custom cache, set fonts back to custom… I generally just keep the rest a mess and just test on one text element during font mod because of that.

2 Likes

Have you tried with a backslash?

For example a text element: \ TEXT
actually does work in Facer and on my watch

2 Likes

For information, adding the wee dot into the space character does work but requires a more extensive top mask to hide it than what I went for.

Keeping the font unchanged but adding a leading full stop (all binary text elements are right justified anyway) it automatically goes over onto the black border for seconds and time. For battery I only need one additional, small top mask to hide it.

I always like to see the alternatives though, and this may come in handy elsewhere so thanks again.
Would still be nice if the watch didn’t strip stuff we deliberately put there.

Edit. Here is the minor cleanup needed on Battery by adding a leading dot (link to face above will be cleaned soon.
image

1 Like

Hmm. Do you mean like:
$#Ds#>31?Ă€:\ $$floor(#Ds#/16)%32%2==1?Ă€:\ $$floor(#Ds#/8)%16%2==1?Ă€:\ $$floor(#Ds#/4)%8%2==1?Ă€:\ $$floor(#Ds#/2)%4%2==1?Ă€:\ $$#Ds#%2==1?Ă€:\ $
If so, that woks in creator vut does some very strange things on my watch. 8 lights up only for 8,10,12, not 9,11,13 dor example. I’m sure the calculation is not changing so must be string position.
GW6 is the watch by the way.

1 Like

Just figured that out. OK, outline off on slow cycle in back of head.

1 Like

You are right, within a formula that does some strange things…

2 Likes

So, for reference, here is the binary text stack for counting up to 127
using pipes to test with default fonts:

$#BLN#>63?|: $
$floor(#BLN#/32)%64%2==1?|: $
$floor(#BLN#/16)%32%2==1?|: $
$floor(#BLN#/8)%16%2==1?|: $
$floor(#BLN#/4)%8%2==1?|: $
$floor(#BLN#/2)%4%2==1?|: $
$#BLN#%2==1?|: $
2 Likes

Binary Sudoku:
image

1 Like

Check this fast small font, built just for your test purpose :slight_smile: LED Shapes | FontStruct

3 Likes

Cheers. Will look at that as well see if you have tips and tricks. I remember nudging being useful a couple of years ago and haven’t delved back overly just yet.
I had made this though: Barnaby Bifurcations | FontStruct

1 Like

Yes, there are multiple “advanced” tricks like nudging, stacking, making composite bricks, using 2x2 filters etc.
This is good tutorial for most of it:

3 Likes

Awesome. The tutorial waters are muddied for web searching so good to get recommendations. I was thinking that Bifurcations could be a good platform for any shapes I may need. Will have to think about groupings and gaps before I use lots though so I can add modifications that are grouped, without moving stuff about and potentially screwing up older stuff on a remove-readd.

1 Like