Skip to content

Commit e6ef71b

Browse files
committed
Revert "Update SkiaSharp to 3.119.0 (#74)"
This reverts commit cab8ac5.
1 parent 16a333a commit e6ef71b

File tree

673 files changed

+64628
-1103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

673 files changed

+64628
-1103
lines changed

SkiaUnity/Assets/Scenes/HarBuzzSample.unity

Lines changed: 706 additions & 672 deletions
Large diffs are not rendered by default.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#if UNITY_EDITOR
2+
3+
using SkiaSharp.Unity;
4+
using SkiaSharp.Unity.HB;
5+
using UnityEngine;
6+
using UnityEditor;
7+
using UnityEditor.SceneManagement;
8+
using TextAlignment = Topten.RichTextKit.TextAlignment;
9+
10+
11+
[CustomEditor(typeof(SVGLoader))]
12+
public class SVGEditor : Editor {
13+
private GUIStyle selectedStyle;
14+
private SerializedProperty svgFile;
15+
bool showHaloSettings = false;
16+
bool showMoreSettings = false;
17+
18+
private void OnEnable(){
19+
selectedStyle = new GUIStyle();
20+
selectedStyle.normal.background = EditorGUIUtility.Load("builtin skins/darkskin/images/pre background@2x.png") as Texture2D;
21+
selectedStyle.normal.textColor = Color.white;
22+
selectedStyle.alignment = TextAnchor.MiddleCenter;
23+
selectedStyle.fontSize = 14;
24+
25+
// Find the serialized property for fontSize
26+
svgFile = serializedObject.FindProperty("svgFile");
27+
}
28+
public override void OnInspectorGUI(){
29+
SVGLoader script = (SVGLoader)target;
30+
GUIStyle largeLabelStyle = new GUIStyle(GUI.skin.label);
31+
largeLabelStyle.fontSize = 12; // Adjust the font size as needed
32+
largeLabelStyle.fontStyle = FontStyle.Bold;
33+
//script.text = EditorGUILayout.TextArea(script.text, GUILayout.Height(100));
34+
//textProperty.stringValue = script.text;
35+
EditorGUILayout.PropertyField(svgFile);
36+
37+
38+
serializedObject.ApplyModifiedProperties();
39+
if (!EditorApplication.isPlayingOrWillChangePlaymode) {
40+
script.RenderSVG();
41+
}
42+
}
43+
}
44+
#endif

SkiaUnity/Assets/SkiaSharp/Editor/SVGEditor.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-1.04 MB
Binary file not shown.

SkiaUnity/Assets/SkiaSharp/Library/arm64-v8a/libHarfBuzzSharp.so.meta

Lines changed: 33 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-474 KB
Binary file not shown.

SkiaUnity/Assets/SkiaSharp/Library/arm64-v8a/libSkiaSharp.so.meta

Lines changed: 62 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-769 KB
Binary file not shown.
-210 KB
Binary file not shown.

SkiaUnity/Assets/SkiaSharp/Library/ios/libHarfBuzzSharp.framework.meta

Lines changed: 34 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)