Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. proportional old style figures. (typography)

proportional old style figures. (typography)

Scheduled Pinned Locked Moved General Discussion
opentypetype
7 Posts 3 Posters 285 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fernandol97
    wrote on Jun 24, 2021, 11:09 AM last edited by
    #1

    Hey,
    is it possible to use the proportional old style figures in a typeface for numbers, if so how do I activate this feature?

    Screen shot of the numbers with "proportional old style figures" turned on in my figma.

    Many thanks Screenshot 2021-06-24 at 12.07.26.png

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Richard
      Global Moderator
      wrote on Jun 27, 2021, 2:02 AM last edited by Richard Jun 26, 2021, 10:02 PM
      #2

      Dear @fernandol97

      It should be possible, It may require you to use the open-type font format. .otf loaded into "text Formats"

      https://www.quackit.com/css/css3/properties/css_font-variant-numeric.cfm

      https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric


      Best wishes 🌝
      Richard

      F 1 Reply Last reply Oct 29, 2021, 5:48 PM
      0
      • R Richard
        Jun 27, 2021, 2:02 AM

        Dear @fernandol97

        It should be possible, It may require you to use the open-type font format. .otf loaded into "text Formats"

        https://www.quackit.com/css/css3/properties/css_font-variant-numeric.cfm

        https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric


        Best wishes 🌝
        Richard

        F Offline
        F Offline
        fernandol97
        wrote on Oct 29, 2021, 5:48 PM last edited by
        #3

        @Richard Thanks for getting back to me! could you share any guidance on how i activate that style of numbers on the phone number here for example? i am pretty new to the code side of things. thanks! https://www.ianadam-smith.co.uk/infooffgreen/

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Richard
          Global Moderator
          wrote on Oct 31, 2021, 11:12 PM last edited by
          #4

          Dear @fernandol97

          If you wish to apply old-style numbering to your whole webpage then you can always add the following code into > Lay Options > Custom CSS & HTML > Custom CSS or via > Customize > CSS

          body{
              font-variant-numeric: oldstyle-nums;
          }
          

          Result:
          Screen Shot 2021-11-01 at 11.51.51 AM.png

          Sorry @fernandol97 i realise now coming back to this thread, that font-variant-numeric is built-in since css3 and does not require font-variant to be applied within CSS of typeface!

          https://www.quackit.com/css/css3/properties/css_font-variant-numeric.cfm

          https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric

          https://laytheme.com/documentation.html#custom-css-styling


          Best wishes @fernandol97 & talk soon, let me know if you have trouble with the code and i can help 🌝
          Richard
          1 Reply Last reply
          0
          • F Offline
            F Offline
            fernandol97
            wrote on Feb 11, 2024, 12:41 PM last edited by
            #5

            Hey Richard, Hope you are well. been a few years since I started this thread.

            Starting up this thread again as I never figured this out. I am working with the same client and hoping to have certain lines of text set to Small Caps and numbers set to old style as seen here in my Figma design. im clueless when it comes to CCS was wondering if its possible to do via the type styles.

            I should be going into the build phase in a few weeks time in lay theme and hoping I can figure it out. Thanks ! Screenshot 2024-02-11 at 12.38.26 pm.jpg

            1 Reply Last reply
            0
            • A Offline
              A Offline
              arminunruh
              Global Moderator
              wrote on Feb 13, 2024, 1:25 PM last edited by
              #6

              hey if you create a textformat, you will see it says :

              html class: _MyFormat

              Enter the custom css in "lay options" -> "custom css & html":

              ._MyFormat{
              font-variant-numeric: oldstyle-nums;
              }
              

              you could talk to the font creator / distributor and ask them what kind of css to use to have those styles

              or as i said in my other post you may be able to get fonts that ONLY have these old numbers or old caps. then create textformats that use those fonts

              F 1 Reply Last reply Feb 18, 2024, 5:04 PM
              0
              • A arminunruh
                Feb 13, 2024, 1:25 PM

                hey if you create a textformat, you will see it says :

                html class: _MyFormat

                Enter the custom css in "lay options" -> "custom css & html":

                ._MyFormat{
                font-variant-numeric: oldstyle-nums;
                }
                

                you could talk to the font creator / distributor and ask them what kind of css to use to have those styles

                or as i said in my other post you may be able to get fonts that ONLY have these old numbers or old caps. then create textformats that use those fonts

                F Offline
                F Offline
                fernandol97
                wrote on Feb 18, 2024, 5:04 PM last edited by
                #7

                @arminunruh Wow my first ever CSS accomplishment, thank you man!

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                I also code custom websites or custom Lay features.
                💿 Email me here: 💿
                info@laytheme.com

                Before you post:
                1. When using a WordPress Cache plugin, disable it or clear your cache.
                2. Update Lay Theme and all Lay Theme Addons
                3. Disable all Plugins
                4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                This often solves issues you might run into

                When you post:
                1. Post a link to where the problem is
                2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                Online Users
                Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                laytheme.com
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Recent
                • Tags
                • Popular
                • Users
                • Search