Skip to content

Em to px #23

Merged
merged 3 commits into from Nov 13, 2011

5 participants

@YodaTravis

I added a goodie that does em to px conversion per the request here:
https://github.com/duckduckgo/duckduckgo/wiki/Goodies

@FloEdelmann

Searching for "8px in px" or "27em to em" would return a wrong value... It's stupid but we should think about every possibility.

@kentfredric

I didn't think "em to px" is a valuable conversion at all, as its relative entirely on the fontsize used .

@yegg
DuckDuckGo member
yegg commented Nov 11, 2011

@kentfredric: like in http://pxtoem.com/ ?

Maybe we should default to some pt size and suggest syntax to specify a different pt size?

@YodaTravis

@kentfredric - we are assuming a default of 16px for now (that gets it started, may add the ability to change default size later). I am also working on adding conversions to and from points as well as em and px
@elektronikLexikon - you are correct and I will handle that as well

@sdball
sdball commented Nov 11, 2011

@kentfredric Sure it's relative, but browsers have a default font-size of 16px. Going from that can still yield helpful results. Maybe we can come up with a sensible query syntax to specify the base font size.

@yegg yegg merged commit 8857e33 into duckduckgo:master Nov 13, 2011
@yegg
DuckDuckGo member
yegg commented Nov 13, 2011

About to go live -- I added a parenthetical note about the base front size choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.