android根據地區高度分割文本問題

來源:互聯網
上載者:User

標籤:

android字型顯示涉及如下參數:1. 基準點是baseline;2. Ascent是baseline之上至字元最高處的距離;3. Descent是baseline之下至字元最低處的距離;4. Leading是上一行字元的descent到下一行的ascent之間的距離;5. Top指的是指的是最高字元到baseline的值,即ascent的最大值;6. 同上,bottom指的是最下字元到baseline的值,即descent的最大值。字型的實際高度由bottm-top決定;android顯示函數drawText(String text, float x, float y, Paint paint)參數y是baseline所在位置。參考資料http://mikewang.blog.51cto.com/3826268/871765

android根據地區高度分割文本問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.