Skip to content

Instantly share code, notes, and snippets.

@drott
drott / CanvasTest_new_diff_ttx.patch
Created August 22, 2023 17:43
@jfkthame's CanvasTest patch suggestion
diff -u CanvasTest.ttx CanvasTest_new.ttx
--- CanvasTest.ttx 2023-08-22 13:41:40
+++ CanvasTest_new.ttx 2023-08-22 13:41:43
@@ -22,12 +22,12 @@
<!-- Most of this table will be recalculated by the compiler -->
<tableVersion value="1.0"/>
<fontRevision value="1.0"/>
- <checkSumAdjustment value="0x6f05675"/>
+ <checkSumAdjustment value="0xea27d36b"/>
<magicNumber value="0x5f0f3cf5"/>
diff -u /var/folders/_q/nxnc234n5b30v0hss6p3vk8r009nzy/T/buffer-content-56vx15 /var/folders/_q/nxnc234n5b30v0hss6p3vk8r009nzy/T/buffer-content-vAEB38
--- /var/folders/_q/nxnc234n5b30v0hss6p3vk8r009nzy/T/buffer-content-56vx15 2023-08-10 19:38:25
+++ /var/folders/_q/nxnc234n5b30v0hss6p3vk8r009nzy/T/buffer-content-vAEB38 2023-08-10 19:38:25
@@ -1,50 +1,63 @@
-B
+A
path.setFillType(SkPathFillType::kWinding);
-path.moveTo(6.75114536f, -13.2246094f);
-path.lineTo(12.1464844f, -13.2246094f);
-path.lineTo(12.1464844f, -8.14787674f);
#0 0x00007f31af302134 in font_service::FontLoader::matchFamilyName(char const*, SkFontStyle, SkFontConfigInterface::FontIdentity*, SkString*, SkFontStyle*)
(this=0x7ffd434b9a40, family_name=0x7f31b5adad01 <SkFontStyle::SkFontStyle()+33> "H\203\304\020]\303\314\314\314\314\314\314\314\314\314UH\211\345H\211}\370H\213M\370H\213A\bH\213\tH)\310H\301\370\004]\303\314\314\314\314UH\211\345H\203\354 H\211}\370H\211u\360H\213}\370H\211}\340H\270\252\252\252\252\252\252\252\252H\211E\350\350\265\377\377\377H\211E\350H\213E\350H;E\360\017\203\026", requested=..., out_font_identifier=0x7ffd434b9980, out_family_name=0x7ffd434b99f0, out_style=0x19000000005)
at ../../components/services/font/public/cpp/font_loader.cc:28
#1 0x00007f31b5b8a6fc in SkFontMgr_FCI::onLegacyMakeTypeface(char const*, SkFontStyle) const
(this=0x559ba0ada310, requestedFamilyName=0x7ffd434b9b40 "Helvetica Neue", requestedStyle=...)
at ../../third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp:304
#2 0x00007f31b61c8d98 in S
{
"date_code": "20201012",
"definition": {
"description": "Hue white and color ambiance LightStrip plus",
"exposes": [
{
"features": [
{
"access": 7,
"description": "On/off state of this light",
@drott
drott / CHANGES
Created January 15, 2021 10:10
CHANGES entry for COLRv1
- New API was added for surfacing properties of COLRv1 color
fonts. COLRv1 color fonts are a new proposed addition to OFF and
OpenType. Specification work currently happens in
https://github.com/googlefonts/colr-gradients-spec/. COLRv1 is
expected to be merged to OpenType and the ISO standardisation
process for adding COLRv1 as an amendment to OFF is underway.
COLRv1 tables are mapped to the a specific subtype of the
FT_COLR_Paint union. As COLRv1 fonts store drawing information in
a graph, often a FT_OpaquePaint type is used to represent a
@drott
drott / radial_gradient_appear_linear.svg
Created November 10, 2020 09:04
Radial Gradient under horizontal transform
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drott
drott / radial_gradient_direction.svg
Created November 9, 2020 12:55
radial_gradient_direction.svg Update Proposal
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
C:\src\yu>python3 -m fontTools.ttx -y0 -o- -tBASE YuGothR.ttc
Dumping "YuGothR.ttc" to "-"...
<?xml version="1.0" encoding="UTF-8"?>
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="4.2">
Dumping 'BASE' table...
<BASE>
<Version value="0x00010000"/>
<HorizAxis>
<BaseTagList>
@drott
drott / render_text_harfbuzz_patch.diff
Created September 26, 2019 10:15
Triggering logging on rematched typeface
--- a/ui/gfx/render_text_harfbuzz.cc
+++ b/ui/gfx/render_text_harfbuzz.cc
@@ -796,11 +796,33 @@ bool TextRunHarfBuzz::FontParams::SetRenderParamsRematchFont(
// scenarios, as the fallback font may be of a different weight and style than
// the run's own, so this can lead to a failure of instantiating the correct
// fallback font.
+
+ sk_sp<SkTypeface> before_rematch;
+ PlatformFont* platform_font = new_font.platform_font();
+ if (platform_font) {
@drott
drott / gist:e95229e9b5dea5fafc6374c090575de8
Created January 18, 2019 17:36
Windows Build Failures
FAILED: obj/third_party/harfbuzz-ng/harfbuzz_source/hb-aat-layout.obj
C:\b\swarming\w\ir\cache\goma\client/gomacc.exe ../../third_party/llvm-build/Release+Asserts/bin/clang-cl.exe /nologo /showIncludes -imsvc..\..\third_party\depot_tools\win_toolchain\vs_files\818a152b3f1da991c1725d85be19a0f27af6bab4\win_sdk\Include\10.0.17763.0\um -imsvc..\..\third_party\depot_tools\win_toolchain\vs_files\818a152b3f1da991c1725d85be19a0f27af6bab4\win_sdk\Include\10.0.17763.0\shared -imsvc..\..\third_party\depot_tools\win_toolchain\vs_files\818a152b3f1da991c1725d85be19a0f27af6bab4\win_sdk\Include\10.0.17763.0\winrt -imsvc..\..\third_party\depot_tools\win_toolchain\vs_files\818a152b3f1da991c1725d85be19a0f27af6bab4\win_sdk\Include\10.0.17763.0\ucrt -imsvc..\..\third_party\depot_tools\win_toolchain\vs_files\818a152b3f1da991c1725d85be19a0f27af6bab4\VC\Tools\MSVC\14.16.27023\include -imsvc..\..\third_party\depot_tools\win_toolchain\vs_files\818a152b3f1da991c1725d85be19a0f27af6bab4\VC\Tools\MSVC\14.16.27023\atlmfc\include -DHAVE_O