HTML for the Pause symbol in audio and video control

后端 未结 10 2161
遥遥无期
遥遥无期 2020-12-22 17:21

I\'m trying to find the Unicode symbol to make a button display the Unicode pause symbol. I was able to find that the Unicode play symbol is but I\'m

10条回答
  •  一个人的身影
    2020-12-22 17:35

    Unicode Standard for Media Control Symbols

    Pause: ⏸︎

    The Unicode Standard 13.0 (update 2020) provides the Miscellaneous Technical glyphs in the HEX range 2300–23FF

    Miscellaneous Technical

    Given the extensive Unicode 13.0 documentation, some of the glyphs we can associate to common Media control symbols would be as following:

    Keyboard and UI symbols

    23CF ⏏︎ Eject media

    User interface symbols

    23E9 ⏩︎ fast forward
    23EA ⏪︎ rewind, fast backwards
    23EB ⏫︎ fast increase
    23EC ⏬︎ fast decrease
    23ED ⏭︎ skip to end, next
    23EE ⏮︎ skip to start, previous
    23EF ⏯︎ play/pause toggle
    23F1 ⏱︎ stopwatch
    23F2 ⏲︎ timer clock
    23F3 ⏳︎ hourglass
    23F4 ⏴︎ reverse, back
    23F5 ⏵︎ forward, next, play
    23F6 ⏶︎ increase
    23F7 ⏷︎ decrease
    23F8 ⏸︎ pause
    23F9 ⏹︎ stop
    23FA ⏺︎ record

    Power symbols from ISO 7000:2012

    23FB ⏻︎ standby/power
    23FC ⏼︎ power on/off
    23FD ⏽︎ power on
    2B58 ⭘︎ power off

    Power symbol from IEEE 1621-2004

    23FE ⏾︎ power sleep

    Use on the Web:

    A file must be saved using UTF-8 encoding without BOM (which in most development environments is set by default) in order to instruct the parser how to transform the bytes into characters correctly. should be used immediately after in a HTML file, and make sure the correct HTTP headers Content-Type: text/html; charset=utf-8 are set.

    Examples:

    HTML
    ⏩ Pictograph 
    ⏩︎ Standardized Variant
    
    CSS
    .icon-ff:before { content: "\23E9" }
    .icon-ff--standard:before { content: "\23E9\FE0E" }
    
    JavaScript
    EL_iconFF.textContent = "\u23E9";
    EL_iconFF_standard.textContent = "\u23E9\uFE0E"
    

    Standardized variant

    To prevent a glyph from being "color-emojified" ⏩︎ / ⏩ append the code U+FE0E Text Presentation Selector to request a Standardized variant: (example: ⏩︎)

    Inconsistencies

    Characters in the Unicode range are susceptible to the font-family environment they are used, application, browser, OS, platform.
    When unknown or missing - we might see symbols like � or ▯ instead, or even inconsistent behavior due to differences in HTML parser implementations by different vendors.
    For example, on Windows Chromium browsers the Standardized Variant suffix U+FE0E is buggy, and such symbols are still better accompanied by CSS i.e: font-family: "Segoe UI Symbol" to force that specific Font over the Colored Emoji (usually recognized as "Segoe UI Emoji") - which defies the purpose of U+FE0E in the first place - time will tell…


    Scalable icon fonts

    To circumvent problems related to unsupported characters - a viable solution is to use scalable icon font-sets like i.e:

    Font Awesome

    Player icons - scalable - font awesome

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    Google Icons

    
    pause
    pause_circle_filled
    pause_circle_outline
    fast_forward
    fast_rewind
    fiber_manual_record
    play_arrow
    play_circle_filled
    play_circle_outline
    skip_next
    skip_previous
    replay
    repeat
    stop
    loop
    mic
    volume_up
    volume_down
    volume_mute
    volume_off

    and many other you can find in the wild; and last but not least, this really useful online tool: font-icons generator, Icomoon.io.


提交回复
热议问题