Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get unexpected rectangles when running Gdi+ Sample for DroidSansFallback font #202

Closed
zwcloud opened this issue May 14, 2020 · 5 comments
Closed

Comments

@zwcloud
Copy link
Contributor

zwcloud commented May 14, 2020

image

download DroidSansFallbackFull.ttc

https://github.com/aosp-mirror/platform_frameworks_base/tree/master/data/fonts

@prepare
Copy link
Member

prepare commented May 15, 2020

I've checked the DroidSansFallbackFull.ttc font
It contains some glyphs eg...

fallback_3647

I think it should be used to complement with other DroidSans font
I will check this more

@zwcloud
Copy link
Contributor Author

zwcloud commented May 16, 2020

Here is a post that seems related to this issue: dompdf/dompdf#1508 (comment)

@prepare
Copy link
Member

prepare commented May 18, 2020

I will add typeface-fallback mechanism later

@prepare
Copy link
Member

prepare commented Jun 7, 2020

Script-Detection => Auto-Font-Switching and Font-fallback, Work-in-Progress

こんにちは, 你好, 여보세요 abc 0123 شمس حب

font_fallback1
pic 1: latin from 'AsanaMath'


こんにちは, 你好, 여보세요 abc 0123 شمس حب
font_fallback4
pic 2: abc from 'Sarabun', alternative typeface


شمس حب น้ำน้ำ こんにちは

font_fallback2


😁😁😁こんにちは, 你好, 여보세요

typeface_sw01

@prepare
Copy link
Member

prepare commented Jul 8, 2020

Gdi+ Example, Automatic-Typeface-Switching Example

No documentation at this time,
so please see/test it on master branch => 54cf6ba

I will describe this later on "Typography.TextServices" => #89

你好a12345

auto_typeface_switching
pic 1, 你好 is rendered with Droid Sans Fallback Regular , But a12345 is render with other typeface


你好😁你好

auto_switch_typeface
pic 2: 你好=> Droid Sans Fallback, 😁 => on Win10, Segoe UI Emoji, and switch back to Droid Sans Fallback again for 你好

@prepare prepare closed this as completed Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants