antigravity-rtl-patcher 3.0.5 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antigravity-rtl-patcher",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "description": "Advanced RTL and Persian/Arabic typography patcher for Antigravity with customizable UI",
5
5
  "main": "src/patcher.js",
6
6
  "bin": {
Binary file
@@ -97,31 +97,25 @@ win.webContents.on('dom-ready', () => {
97
97
  }, 500);
98
98
 
99
99
  const CSS = \`
100
- /* Vazirmatn Font */
101
- @font-face {
102
- font-family: 'Vazirmatn';
103
- src: url('./Vazirmatn-Variable.woff2') format('woff2');
104
- font-weight: 100 900;
105
- font-display: swap;
106
- }
107
-
108
- /* Apply Vazirmatn to all text when RTL is active */
100
+ /* Persian/Arabic Font Stack */
109
101
  body.rtl-active {
110
- font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
102
+ font-family: 'Segoe UI', Tahoma, Arial, 'Helvetica Neue', sans-serif !important;
103
+ font-feature-settings: 'liga' 1, 'calt' 1 !important;
104
+ text-rendering: optimizeLegibility !important;
105
+ -webkit-font-smoothing: antialiased !important;
111
106
  }
112
107
 
113
108
  /* RTL Styles - Only for message content */
114
109
  body.rtl-active [dir="rtl"] {
115
110
  direction: rtl !important;
116
111
  text-align: right !important;
117
- unicode-bidi: isolate !important;
118
112
  }
119
113
 
120
114
  /* Keep paragraphs and headings with proper bidi */
121
115
  body.rtl-active p,
122
116
  body.rtl-active h1, body.rtl-active h2, body.rtl-active h3,
123
117
  body.rtl-active h4, body.rtl-active h5, body.rtl-active h6 {
124
- unicode-bidi: plaintext !important;
118
+ direction: inherit !important;
125
119
  text-align: start !important;
126
120
  }
127
121
 
@@ -139,7 +133,6 @@ win.webContents.on('dom-ready', () => {
139
133
  body.rtl-active code * {
140
134
  direction: ltr !important;
141
135
  text-align: left !important;
142
- unicode-bidi: isolate !important;
143
136
  font-family: 'Courier New', Consolas, Monaco, monospace !important;
144
137
  }
145
138