亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

GMAIL 中的 Google 字體無法識別

GMAIL 中的 Google 字體無法識別

PHP
阿波羅的戰車 2023-04-28 14:41:07
我正在使用 PHPMailer 發送郵件,Gmail 似乎無法識別標題中的字體“Kaushan Script”,但它成功識別了正文其余部分的“Roboto Condensed”。兩者都是谷歌字體。盡管如此,gmail 還是能夠識別一個并忽略另一個并放置它自己的隨機字體。檢查 gmail 中的元素仍然顯示我使用的字體名稱。這是我的代碼:<!DOCTYPE html>  <html>   <head>     <meta charset="utf-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap" rel="stylesheet">     <link href="https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap" rel="stylesheet">     <style>      .mail-head, .mail-foot {        background: linear-gradient(315deg, #ee9617 0%, #fe5858 74%);        padding: 10px;        width: 100%;        box-sizing: border-box;        color: #fff;        font-size: 2rem;        font-family: "Kaushan Script", cursive;      }      .mail-foot {        font-size: 14px;        text-align: center;        font-family: "Roboto Condensed", sans-serif;      }      .mail-body {        font-size: 1rem;        font-family: "Roboto Condensed", sans-serif;        padding: 20px;        line-height: 1.5;        border-right: 1px solid #ee9617;        border-left: 1px solid #fe5858;      }      .logo {        width: auto;        height: 2.5rem;      }      .logo-title {        position: absolute;        top: 1rem;        left: 4.5rem;      }      .otp {        color: #f69;        margin-left: 10px;      }     </style>   </head>   <body>     <div class="mail-head">       <span class="logo-title">Site Name</span>     </div>
查看完整描述

1 回答

?
偶然的你

TA貢獻1841條經驗 獲得超3個贊

語境

據我所知,Gmail 并不支持所有的 Google 字體或網絡字體。2018 年 4 月,Gmail 為其網絡郵件客戶端發布了更新的界面。這個新界面使用了有限的流行網絡字體列表,包括 Google Sans 和 Roboto。(這解釋了為什么 Roboto 工作是你的情況)。

問題

我沒有找到關于此的官方文檔,也沒有找到支持 Gmail 界面的 Google 字體或網絡字體列表。

選擇

這些是 Gmail 支持的字體。嘗試更改其中任何一個的“Kaushan Script”以確認 Gmail 不支持“Kaushan Script”。檢查您是否可以使用這些字體中的任何一種來替換“Kaushan Script”。否則我建議改用圖像。

  • 宋體

  • 宋體黑

  • Arial 窄版

  • 文人老派

  • 古書

  • 木炭

  • 導游

  • 快遞新

  • 漫畫無 MS

  • 固定寬度(等寬)

  • 加拉蒙

  • 日內瓦

  • 喬治亞州

  • 黑體字

  • 影響

  • 清醒領事

  • 大露西達

  • 沒有 Unicode 的 Lucida

  • 摩納哥

  • 商務車

  • 無襯線字體

  • 窄 (arial 窄)

  • 紐約

  • 巴拉丁

  • 帕拉蒂諾排字機

  • 機器人

  • 無襯線字體(宋體)

  • Serif (times new roman)(襯線體)

  • 象征

  • 塔霍馬

  • Times New Roman(times new roman, serif)

  • Trebuchet MS (trebuchet ms, sans-serif)

  • 綠色

  • 織帶

  • 寬幅(宋體黑)

  • 翼丁

  • Zapf 標志符號

祝你好運!


查看完整回答
反對 回復 2023-04-28
  • 1 回答
  • 0 關注
  • 169 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號