glimmer-dsl-libui 0.12.3 → 0.12.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aba1a807526b9d057f5ad5ca571de474281b2cdfe835ce633c94a8671ee4fe4b
4
- data.tar.gz: 411da2f91c7eec3aa75800d70cdac0f3142b0ed80d7cf17a1f82be7e06089f63
3
+ metadata.gz: a8fbbb77d2cc17609f9f18fb32601f44e1d8aac00f4935a6f9f8feb7517d1b93
4
+ data.tar.gz: 73fdb3744a8fed056a5837af3cc0dbfaeb7b4eb3bb11e0c70899f2e61b5386a4
5
5
  SHA512:
6
- metadata.gz: 1f9d553473a315492af00165fdd40cabef4fd3ca3e363d3e57ccaf36f85515172c380cf0a38bb49387e04f9f6900147e13f9d5e28fd682c27110380c4d71218c
7
- data.tar.gz: 74fccac3372a6d2e67109adfe3284d973fab062a2fd947cca3b82d90b2733224ddba04264d2d43ce25b6db3f2a79bd9cb002766fd93d83c65bcbe1d83fc59fd6
6
+ metadata.gz: 1172f079336d7b0d27cdd681a386615239d00cc7201d15686f2e511a4ca992e6f5b1c2523afbf839b87ddff3eedbe951c6b634bd94aa8e40c3537a33af3b7208
7
+ data.tar.gz: e5fd879eb9bf438a174f7998d247fe9028d7d2b28703754b59482007e831fe190a4a827e58faa1b9f83a9ecdc2b79aa0a48c4d46114f19fa55bbab6a5c2e899b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.12.4
4
+
5
+ - Fix issue #67 (The Japanese text is displayed strangely), thanks to PR #68 by @junogura
6
+
3
7
  ## 0.12.3
4
8
 
5
9
  - Upgrade to libui 0.1.2 (final version of 0.1.2.pre)
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for LibUI 0.12.3
1
+ # [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for LibUI 0.12.4
2
2
  ## Prerequisite-Free Ruby Desktop Development Cross-Platform Native GUI Library ([Fukuoka Award Winning](http://www.digitalfukuoka.jp/topics/187?locale=ja))
3
3
  ### The Quickest Way From Zero To GUI
4
4
  [![Gem Version](https://badge.fury.io/rb/glimmer-dsl-libui.svg)](http://badge.fury.io/rb/glimmer-dsl-libui)
@@ -456,7 +456,7 @@ gem install glimmer-dsl-libui
456
456
  Or install via Bundler `Gemfile`:
457
457
 
458
458
  ```ruby
459
- gem 'glimmer-dsl-libui', '~> 0.12.3'
459
+ gem 'glimmer-dsl-libui', '~> 0.12.4'
460
460
  ```
461
461
 
462
462
  Test that installation worked by running the [Glimmer Meta-Example](#examples):
@@ -665,7 +665,7 @@ Mac | Windows | Linux
665
665
 
666
666
  Application scaffolding enables automatically generating the directories/files of a new desktop GUI application that follows the MVC architecture and can be packaged as a Ruby gem that includes an executable script for running the app conveniently. It also ensures that software engineers follow the recommended Glimmer DSL for LibUI conventions and best practices. Application Scaffolding greatly improves software engineering productivity when building desktop applications with [Glimmer DSL for LibUI](https://rubygems.org/gems/glimmer-dsl-libui).
667
667
 
668
- Application Scaffolding relies on the juwelier Ruby gem, which expects a local Git config of [`user.name`](https://docs.github.com/en/get-started/getting-started-with-git/setting-your-username-in-git#setting-your-git-username-for-every-repository-on-your-computer) (git config --global user.name "FirstName LastName") and `github.user` (`git config --global github.user githubusername`).
668
+ Application Scaffolding relies on the juwelier Ruby gem, which expects a local Git config of [`user.name`](https://docs.github.com/en/get-started/getting-started-with-git/setting-your-username-in-git#setting-your-git-username-for-every-repository-on-your-computer) (`git config --global user.name "FirstName LastName"`) and `github.user` (`git config --global github.user githubusername`).
669
669
 
670
670
  Scaffold Glimmer DSL for LibUI application with this command:
671
671
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.3
1
+ 0.12.4
Binary file
@@ -147,51 +147,51 @@ module Glimmer
147
147
  ::LibUI.attributed_string_append_unattributed(@parent_proxy.attributed_string, @string)
148
148
  unless color.nil?
149
149
  color_attribute = ::LibUI.new_color_attribute(@color[:r].to_f / 255.0, @color[:g].to_f / 255.0, @color[:b].to_f / 255.0, @color[:a] || 1.0)
150
- ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, color_attribute, @start, @start + @string.size)
150
+ ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, color_attribute, @start, @start + @string.bytesize)
151
151
  end
152
152
  unless background.nil?
153
153
  background_attribute = ::LibUI.new_background_attribute(@background[:r].to_f / 255.0, @background[:g].to_f / 255.0, @background[:b].to_f / 255.0, @background[:a] || 1.0)
154
- ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, background_attribute, @start, @start + @string.size)
154
+ ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, background_attribute, @start, @start + @string.bytesize)
155
155
  end
156
156
  unless underline.nil?
157
157
  underline_attribute = ::LibUI.new_underline_attribute(Glimmer::LibUI.enum_symbol_to_value(:underline, @underline))
158
- ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, underline_attribute, @start, @start + @string.size)
158
+ ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, underline_attribute, @start, @start + @string.bytesize)
159
159
  end
160
160
  unless underline_color.nil?
161
161
  if Glimmer::LibUI.enum_symbols(:underline_color).include?(underline_color.to_s.to_sym) && underline_color.to_s.to_sym != :custom
162
162
  underline_color_attribute = ::LibUI.new_underline_color_attribute(Glimmer::LibUI.enum_symbol_to_value(:underline_color, @underline_color), 0, 0, 0, 0)
163
- ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, underline_color_attribute, @start, @start + @string.size)
163
+ ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, underline_color_attribute, @start, @start + @string.bytesize)
164
164
  else
165
165
  the_color = Glimmer::LibUI.interpret_color(@underline_color)
166
166
  underline_color_attribute = ::LibUI.new_underline_color_attribute(0, the_color[:r].to_f / 255.0, the_color[:g].to_f / 255.0, the_color[:b].to_f / 255.0, the_color[:a] || 1.0)
167
- ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, underline_color_attribute, @start, @start + @string.size)
167
+ ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, underline_color_attribute, @start, @start + @string.bytesize)
168
168
  end
169
169
  end
170
170
  unless font.nil?
171
171
  if font[:family]
172
172
  family_attribute = ::LibUI.new_family_attribute(font[:family])
173
- ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, family_attribute, @start, @start + @string.size)
173
+ ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, family_attribute, @start, @start + @string.bytesize)
174
174
  end
175
175
  if font[:size]
176
176
  size_attribute = ::LibUI.new_size_attribute(font[:size])
177
- ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, size_attribute, @start, @start + @string.size)
177
+ ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, size_attribute, @start, @start + @string.bytesize)
178
178
  end
179
179
  if font[:weight]
180
180
  weight_attribute = ::LibUI.new_weight_attribute(Glimmer::LibUI.enum_symbol_to_value(:text_weight, font[:weight]))
181
- ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, weight_attribute, @start, @start + @string.size)
181
+ ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, weight_attribute, @start, @start + @string.bytesize)
182
182
  end
183
183
  if font[:italic]
184
184
  italic_attribute = ::LibUI.new_italic_attribute(Glimmer::LibUI.enum_symbol_to_value(:text_italic, font[:italic]))
185
- ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, italic_attribute, @start, @start + @string.size)
185
+ ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, italic_attribute, @start, @start + @string.bytesize)
186
186
  end
187
187
  if font[:stretch]
188
188
  stretch_attribute = ::LibUI.new_stretch_attribute(Glimmer::LibUI.enum_symbol_to_value(:text_stretch, font[:stretch]))
189
- ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, stretch_attribute, @start, @start + @string.size)
189
+ ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, stretch_attribute, @start, @start + @string.bytesize)
190
190
  end
191
191
  end
192
192
  unless open_type_features.nil?
193
193
  open_type_features_attribute = ::LibUI.new_features_attribute(open_type_features.libui)
194
- ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, open_type_features_attribute, @start, @start + @string.size)
194
+ ::LibUI.attributed_string_set_attribute(@parent_proxy.attributed_string, open_type_features_attribute, @start, @start + @string.bytesize)
195
195
  end
196
196
  destroy if area_proxy.nil?
197
197
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-libui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.3
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-27 00:00:00.000000000 Z
11
+ date: 2024-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glimmer