Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
7e0cd021
Commit
7e0cd021
authored
9 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
use UTF8 encoding
parent
da6fa544
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/mobile/iOS/Onelab/ModelViewController.mm
+1
-1
1 addition, 1 deletion
contrib/mobile/iOS/Onelab/ModelViewController.mm
contrib/mobile/iOS/Onelab/Onelab-Info.plist
+2
-2
2 additions, 2 deletions
contrib/mobile/iOS/Onelab/Onelab-Info.plist
with
3 additions
and
3 deletions
contrib/mobile/iOS/Onelab/ModelViewController.mm
+
1
−
1
View file @
7e0cd021
...
@@ -381,7 +381,7 @@ void getBitmap(void *self, const char *text, int textsize, unsigned char **map,
...
@@ -381,7 +381,7 @@ void getBitmap(void *self, const char *text, int textsize, unsigned char **map,
{
{
UILabel
*
lbl
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
1024
,
7
*
textsize
/
6
)];
UILabel
*
lbl
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
1024
,
7
*
textsize
/
6
)];
lbl
.
font
=
[
UIFont
systemFontOfSize
:
textsize
];
lbl
.
font
=
[
UIFont
systemFontOfSize
:
textsize
];
[
lbl
setText
:[
NSString
stringWithCString
:
text
encoding
:
[
NS
String
defaultC
StringEncoding
]]
]
;
[
lbl
setText
:[
NSString
stringWithCString
:
text
encoding
:
NS
UTF8
StringEncoding
]];
[
lbl
setBackgroundColor
:[
UIColor
clearColor
]];
[
lbl
setBackgroundColor
:[
UIColor
clearColor
]];
CGSize
lblSize
=
[[
lbl
text
]
sizeWithAttributes
:@{
NSFontAttributeName
:
[
lbl
font
]}];
CGSize
lblSize
=
[[
lbl
text
]
sizeWithAttributes
:@{
NSFontAttributeName
:
[
lbl
font
]}];
*
realWidth
=
lblSize
.
width
;
*
realWidth
=
lblSize
.
width
;
...
...
This diff is collapsed.
Click to expand it.
contrib/mobile/iOS/Onelab/Onelab-Info.plist
+
2
−
2
View file @
7e0cd021
...
@@ -35,11 +35,11 @@
...
@@ -35,11 +35,11 @@
<key>
CFBundlePackageType
</key>
<key>
CFBundlePackageType
</key>
<string>
APPL
</string>
<string>
APPL
</string>
<key>
CFBundleShortVersionString
</key>
<key>
CFBundleShortVersionString
</key>
<string>
1.
0.12
</string>
<string>
1.
1.0
</string>
<key>
CFBundleSignature
</key>
<key>
CFBundleSignature
</key>
<string>
????
</string>
<string>
????
</string>
<key>
CFBundleVersion
</key>
<key>
CFBundleVersion
</key>
<string>
1.
0.12
</string>
<string>
1.
1.0
</string>
<key>
LSRequiresIPhoneOS
</key>
<key>
LSRequiresIPhoneOS
</key>
<true/>
<true/>
<key>
UIFileSharingEnabled
</key>
<key>
UIFileSharingEnabled
</key>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment