diff --git a/lib/make/fonts.js b/lib/make/fonts.js index 9437288..649db64 100644 --- a/lib/make/fonts.js +++ b/lib/make/fonts.js @@ -29,9 +29,9 @@ make.font = { /* values */ ["larger", "smaller"], /* values */ - make.number.unsignedNumber() + make.units.units(), + make.number.unsignedNumber() + make.unit.unit(), /* values */ - make.units.percent(), + make.unit.percent(), ]); }, genericFamily: function () { diff --git a/lib/make/units.js b/lib/make/units.js index 9f79b77..8ca168f 100644 --- a/lib/make/units.js +++ b/lib/make/units.js @@ -3,13 +3,13 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ make.unit = { - units: function () { + unit: function () { return random.pick([ "px", "em", "ex", "ch", "rem", "mm", "cm", "in", "pt", "pc", "%" ]); }, length: function () { - return make.number.any() + make.unit.units(); + return make.number.any() + make.unit.unit(); }, percent: function () { return make.number.any() + "%";