Skip to content

Commit

Permalink
More testing of text on a curve. For some reason, the spacing for ⊥––…
Browse files Browse the repository at this point in the history
…⊥ is messed up (font translation?) , but normal text seems OK.
  • Loading branch information
grhowes committed May 3, 2015
1 parent e824c9e commit 075c3bc
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 5 deletions.
27 changes: 27 additions & 0 deletions SVGgh Debugging App/Artwork/Eye.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 18 additions & 1 deletion SVGgh Debugging App/Artwork/TextOnCurve.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion SVGgh Debugging App/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<constraint firstAttribute="width" secondItem="LDH-8f-BQz" secondAttribute="height" multiplier="1:1" id="mOv-Kx-r6x"/>
</constraints>
<connections>
<segue destination="Kby-wU-kVd" kind="embed" identifier="initialEmbed" id="C52-d2-vPD"/>
<segue destination="Ux3-B9-VgV" kind="embed" identifier="initialEmbed" id="JTJ-Ke-eWm"/>
</connections>
</containerView>
<view tag="1" contentMode="scaleToFill" horizontalHuggingPriority="1000" verticalHuggingPriority="1000" placeholderIntrinsicWidth="280" placeholderIntrinsicHeight="30" translatesAutoresizingMaskIntoConstraints="NO" id="uoD-rr-R4J" customClass="GHSegmentedControl">
Expand Down
10 changes: 7 additions & 3 deletions SVGgh Debugging App/SVGghDebuggingViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,20 @@ - (void)viewDidLoad

SVGRenderer* aRenderer = [[SVGRenderer alloc] initWithContentsOfURL:myArtwork];
[self.segmentedControl insertSegmentWithRenderer:aRenderer atIndex:0 animated:NO];
[self.segmentedControl insertSegmentWithTitle:NSLocalizedString(@"Eyes", @"") atIndex:1 animated:NO];

myArtwork = [GHControlFactory locateArtworkForObject:self atSubpath:@"Artwork/Eye"];
aRenderer = [[SVGRenderer alloc] initWithContentsOfURL:myArtwork];

[self.segmentedControl insertSegmentWithRenderer:aRenderer atIndex:1 animated:NO];



myArtwork = [GHControlFactory locateArtworkForObject:self atSubpath:@"Artwork/Butterfly"];
aRenderer = [[SVGRenderer alloc] initWithContentsOfURL:myArtwork];

[self.segmentedControl insertSegmentWithRenderer:aRenderer atIndex:2 animated:NO];
[self.segmentedControl insertSegmentWithTitle:NSLocalizedString(@"Rotated", @"") atIndex:3 animated:NO];
self.segmentedControl.selectedSegmentIndex = 3;
[self.segmentedControl insertSegmentWithTitle:NSLocalizedString(@"Curvy", @"") atIndex:3 animated:NO];
self.segmentedControl.selectedSegmentIndex = 0;



Expand Down

0 comments on commit 075c3bc

Please sign in to comment.