Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make OSD metric symbols more... metric ;) Add support for fonts stored in PNG with transparency #90

Open
robertrypula opened this issue Dec 15, 2022 · 7 comments

Comments

@robertrypula
Copy link

robertrypula commented Dec 15, 2022

For some reason this kills my eyes, few examples:

image

Maybe there are some places in the world that this is used on daily basis but in general there are some rules in metric system how to express units:

full name correct when symbols are used incorrect
meter m M, m., mtr, mtrs
kilometer km Km, km., KM, kms, K, k
milliampere hours mAh mamph, mah, mAhr
second s sec, S, SEC, sec., s., S.
hour h hr, hrs, HR, h., HR., HRS.
Ampere A Amp (used in spoken language but technically incorrect when used as unit symbol)
Volt V

Also metric system uses "/" for "per" as this scales up very well for any unit. We don't have to mix symbols with "p" character when expressing any combination of units. Also there is no logic behind expressing km/h as kph but using "/" for the other units like m/s, cm/s, mm/s (mps, cmps, mmps is like WAT? :D). Consistency is the key so it would be nice to stick to just one character like "/":

full name correct when symbols are used incorrect usage
meters per second m/s M/s (M is mega, m is meter), m/sec (in metric system symbol for second is just "s"), M/sec
kilometers per hour km/h kph, kmh, kmph (kilo mile per hour? :D)
centimeters per second cm/s cmps (WAT?)
degrees per second deg/s dps?, degps? oh noo ;)

Metric symbols are case sensitive. Maybe M/S is kind of okay because we might not have lowercase fonts but mixing it like M/s is not correct. It's not "Mega per second" :P

More info here https://usma.org/correct-usage-of-the-si

This lead me to the question. Is there any way where I can open those bin files in for example Photoshop and edit those graphics? This really kills my eyes and destroys experience :D

@hickscorp
Copy link

A guess here - but as it is possible to use custom fonts for the OSD by placing them at the root of your SD card, and since these units are actually each just a single glyph in the font file, it is very likely that you should be able to patch your favourite font file and drop it on the SD card.

I might give it a shot this weekend, as this is also something that disturbs me - it doesn't hurt my eyes, but having to rely on my analytic brain while flying kind of breaks my flow :)

@Knifa
Copy link
Collaborator

Knifa commented Jan 21, 2023

lmao ok, if you feel so strongly about it fair play 😄 here's an update for material-osd.

the primary reason for me was because km/h is longer than kph so it wouldn't fit in the glyph box unless it was scaled down, which means all the other units need scaled down to match. they end up pretty small on HD. i'm sure it's fine though.

image
image

the fonts aren't owned by this repo fwiw, but a fun post none-the-less.

@robertrypula
Copy link
Author

Thanks! <3 I'll check it in more details over next weekend!

@robertrypula
Copy link
Author

robertrypula commented Jan 23, 2023

A guess here - but as it is possible to use custom fonts for the OSD by placing them at the root of your SD card, and since these units are actually each just a single glyph in the font file, it is very likely that you should be able to patch your favourite font file and drop it on the SD card.

I might give it a shot this weekend, as this is also something that disturbs me - it doesn't hurt my eyes, but having to rely on my analytic brain while flying kind of breaks my flow :)

Yeah I wanted to update them in Photoshop but I failed on finding the way on editing the *.bin file :) If googles could read PNG with transparency that would be awesome :D

@robertrypula robertrypula changed the title Make OSD metric symbols more... metric ;) Make OSD metric symbols more... metric ;) Add support for fonts stored in PNG with transparency Jan 23, 2023
@vicewize
Copy link

vicewize commented Feb 4, 2023

Ill try to do my best to update my font, i'm an engineer and only use the metric system and I absolutely hate the imperial system (im from USA) so i get it 100%. I can't stand it when I have to work on a project in Fusion360 in inches or worse fractional inches.... Remnant of British imperialism and Americans are stubborn as f, to change anything, even though most people know its so much better and 10x simpler... I'll read this thread more throughly when i have time. :-) It was basically a size issue because when the glyths get down past a certain size, its gets really hard to read in the googles no matter how "pixel perfect" I make them in illustrator when I rasterize them, but ill see what I can do. Ive been super busy and haven't made any new fonts or updates but was planning to but you know how it is... life.. Thanks for trying my font btw :-)

@robertrypula
Copy link
Author

I'm now in the field testing all the fonts (finally it's not raining). I'll make comparison and l make a list :)

@robertrypula
Copy link
Author

robertrypula commented Feb 10, 2023

Hello @vicewize
I finally had some time to continue on this topic. Please find below my suggestions. I might be wrong in my thinking so I'm open for discussion :)

current behavior suggestion comment
image image SI uses "/" for "per"
image image M is mega, SI symbol for second is just "s" not sec
image image Inconsistency - if we use lower case charracters in other places when km should be with lowercase characters
image image "ft" for case consistensy and "s" for second. Since this is imperial unit I guess fps is also correct (according to Wikipedia)
image image Units should be upper case
image image Dot looks like minus, IMHO it looks weird on units especially here: image It's like - 0 _ 3 m
image image SI symbol for Ampere is uppercase "A". General Rule in SI is that we use upper case for units when name comes from a real person (like "W" for Mr. Watt, "V" for Mr. Volt, "A" for Mr. Ampere)
image image Here I'm not sure, upper case it's easier to read but we have inconsistency with places where lower/upper case are used
image image Same as above
image image IMHO the / is not needed as it looks now as "ON per minute" and "FLY per min" which doesn't make sense :D

In general I found this website very helpful https://usma.org/correct-usage-of-the-si. Also Wikipedia is cool to double check the units.

I was also testing all the other fonts. It would be super cool to add CHROMA version of the VICEWIZE Italic font. You could use existing tools to overlay it over GoPro footage. Check my video at the end:

https://youtu.be/C83AlfBp-9k?t=186

YouTube

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants