WordPress.org

Make WordPress Core

Ticket #29664: Myanmar_Fonts.2.diff

File Myanmar_Fonts.2.diff, 5.2 KB (added by herzcthu, 5 years ago)

Add Myanmar Script supported fonts css for core, tinymce and media view

  • wp-admin/css/install.css

     
    266266        font-family: Arial, sans-serif;
    267267}
    268268
     269:lang(my-mm) body,
     270:lang(my-mm) textarea,
     271:lang(my-mm) input,
     272:lang(my-mm) submit {
     273        font-family: "Noto Sans Myanmar", "Myanmar Text", "Myanmar MN", Padauk, Tharlon, Tahoma, Arial, sans-serif;
     274}
     275
    269276@media only screen and (max-width: 799px) {
    270277        body {
    271278                margin-top: 115px;
  • wp-admin/css/l10n.css

     
    2121        font-weight: bold;
    2222}
    2323
     24/* my_MM: Add Myanmar Script supported fonts for various OS platforms. */
     25body.locale-my-mm,
     26body.locale-my-mm .press-this a.wp-switch-editor {
     27        font-family: "Noto Sans Myanmar", "Myanmar Text", "Myanmar MN", Padauk, Tharlon, Tahoma, Arial, sans-serif;
     28}
     29
    2430/* zh_CN: Remove italic properties. */
    2531.locale-zh-cn .howto,
    2632.locale-zh-cn .tablenav .displaying-num,
  • wp-admin/setup-config.php

     
    7575        header( 'Content-Type: text/html; charset=utf-8' );
    7676?>
    7777<!DOCTYPE html>
    78 <html xmlns="http://www.w3.org/1999/xhtml"<?php if ( is_rtl() ) echo ' dir="rtl"'; ?>>
     78<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    7979<head>
    8080        <meta name="viewport" content="width=device-width" />
    8181        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  • wp-includes/css/admin-bar.css

     
    2626        font-family: Arial, sans-serif;
    2727}
    2828
     29html:lang(my-mm) #wpadminbar *  {
     30        font-family: "Noto Sans Myanmar", "Myanmar Text", "Myanmar MN", Padauk, Tharlon, Tahoma, Arial, sans-serif;
     31}
     32
    2933#wpadminbar a.ab-item,
    3034#wpadminbar > #wp-toolbar span.ab-label,
    3135#wpadminbar > #wp-toolbar span.noticon {
  • wp-includes/css/editor.css

     
    936936        font-family: Arial, Monaco, monospace;
    937937}
    938938
     939.locale-my-mm .wp-editor-area {
     940        font-family: "Noto Sans Myanmar", "Myanmar Text", "Myanmar MN", Padauk, Tharlon, Tahoma, Arial, sans-serif;
     941}
     942
    939943.wp-editor-container textarea.wp-editor-area {
    940944        width: 100%;
    941945        margin: 0;
     
    21172121        font-family: Arial, sans-serif;
    21182122}
    21192123
     2124html:lang(my-mm) .wp-switch-editor,
     2125html:lang(my-mm) .quicktags-toolbar input  {
     2126        font-family: "Noto Sans Myanmar", "Myanmar Text", "Myanmar MN", Padauk, Tharlon, Tahoma, Arial, sans-serif;
     2127}
     2128
    21202129/* HiDPI */
    21212130@media print,
    21222131  (-o-min-device-pixel-ratio: 5/4),
  • wp-includes/css/media-views.css

     
    21452145        font-family: Arial, sans-serif;
    21462146}
    21472147
     2148:lang(my-mm) .media-modal,
     2149:lang(my-mm) .media-frame,
     2150:lang(my-mm) .media-frame .search,
     2151:lang(my-mm) .media-frame input[type="text"],
     2152:lang(my-mm) .media-frame input[type="password"],
     2153:lang(my-mm) .media-frame input[type="number"],
     2154:lang(my-mm) .media-frame input[type="search"],
     2155:lang(my-mm) .media-frame input[type="email"],
     2156:lang(my-mm) .media-frame input[type="url"],
     2157:lang(my-mm) .media-frame textarea,
     2158:lang(my-mm) .media-frame select {
     2159        font-family: "Noto Sans Myanmar", "Myanmar Text", "Myanmar MN", Padauk, Tharlon, Tahoma, Arial, sans-serif;
     2160}
     2161
    21482162@media only screen and (max-width: 940px) {
    21492163        .media-frame-content .media-toolbar-primary .search,
    21502164        .media-frame-content .media-toolbar-secondary .attachment-filters {
  • wp-includes/functions.php

     
    25602560                        -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
    25612561                        box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
    25622562                }
    2563 
     2563                :lang(my-MM) {
     2564                        font-family: "Noto Sans Myanmar", "Myanmar Text", "Myanmar MN", Padauk, Tharlon, Tahoma, Arial, sans-serif;
     2565                }
    25642566                <?php if ( 'rtl' == $text_direction ) : ?>
    25652567                body { font-family: Tahoma, Arial; }
    25662568                <?php endif; ?>
  • wp-includes/js/tinymce/skins/wordpress/wp-content.css

     
    3131        font-family: Arial, "Times New Roman", "Bitstream Charter", Times, serif;
    3232}
    3333
     34body.locale-my-mm {
     35        font-family: "Noto Sans Myanmar", "Myanmar Text", "Myanmar MN", Padauk, Tharlon, Tahoma, Arial, sans-serif;
     36}
     37
    3438body.wp-autoresize {
    3539        overflow: visible !important;
    3640        /* The padding ensures margins of the children are contained in the body. */