Giter VIP home page Giter VIP logo

coretextwrapper's Introduction

Adrian Kosmaczewski

Adrian Kosmaczewski is a writer, a software developer and a trainer. He is a published author, and has worked as a professional software developer since 1996. Adrian holds a Master in Information Technology from the University of Liverpool. Together with Graham Lee, he is the creator of De Programmatica Ipsum.

When not coding or teaching, Adrian likes to spend time with his wife Claudia, his cat Max and his Olivetti Lettera 22 typewriter.

Adrian's GitHub stats

Adrian's Top Languages

LinkedIn Twitter GitLab YouTube Blog

Blog: akos.ma

Magazine: De Programmatica Ipsum

Interests

Rust Python TypeScript C plus plus Go Dot net Kubernetes

Windows Ubuntu Amazon AWS Google Cloud Microsoft Azure

coretextwrapper's People

Contributors

orta avatar richarddas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coretextwrapper's Issues

What Change we needed to work with Arabic text ?

Hello,

I want to add arabic text which is showing right to left also we need to convert our column from right to left

I was able to do the scrollview which scroll from right to left but i am not able to do the columnview which start from right to left

minor spelling mistakes in readme

Hi. I should have done it myself, but I thought it would be extreme to fork for these two misspellings:

However, Core Test [Text] is a C-based framework,

The API interface is very simple (in [on] purpose)

UIFont addition is leaking

you - (CTFontRef)CTFont; method is missing the CFMakeCollectable(font); before returning. It should be autorelease ;)

Podspec is incomplete

Sorry about that, the pod spec that you pulled was missing the source_files param.

Please tag the latest (head) CoreTextWrapper to 1.0.2 or 1.1 and I'll upload a fix. No point in doing so before then, as the 1.0.1 tag was prior to the addition of 'AKOMultiColumnTextViewDataSource.h' (among other things)

Thanks!

Memory leak pushing multipageviews

Pushing a new AKOMultiPageTextView, e.g.

    PushedViewController *newController=[[PushedViewController alloc] initWithNibName:@"PushedViewController" bundle:nil];
    [self presentModalViewController:newController animated:NO];

where pushedViewController has an AKOMultiPageTextView object and nothing else causes a leak. When this is done again, the leak is repeated. The leak is less noticeable with small strings, but we've been working with 4,000 word+ strings which cause 7-10 MB leaks per push (quickly causes app failure).

Call stack for the allocation is:

1 CoreText -[_CTNativeGlyphStorage prepareWithCapacity:preallocated:]
2 CoreText -[_CTNativeGlyphStorage initWithCount:]
3 CoreText +[_CTNativeGlyphStorage newWithCount:]
4 CoreText TTypesetterAttrString::Initialize(__CFAttributedString const*)
5 CoreText TTypesetterAttrString::TTypesetterAttrString(__CFAttributedString const*)
6 CoreText TFramesetterAttrString::TFramesetterAttrString(__CFAttributedString const*)
7 CoreText CTFramesetterCreateWithAttributedString

Memory is being allocated in at line 374 in AKOMultiColumnTextView.m:

CTFramesetterRef framesetter = CTFramesetterCreateWithAttributedString((CFAttributedStringRef)self.attributedString);

We've modified your sample project to show the same behavior, so it's not something in our own project (we can provide this adjusted project on request). Any ideas what might be causing this?

Consider UIAppFonts in info.plist

I think starting in ios3.2 you can use the UIAppFonts info.plist value. I.e.

Applications that want to use custom fonts can now include those fonts in their application bundle and register those fonts with the system by including the UIAppFonts key in their Info.plist file. The value of this key is an array of strings identifying the font files in the application’s bundle. When the system sees the key, it loads the specified fonts and makes them available to the application.

although the ios 4.0 (and 3.2) release notes mention

CGFontCreateWithFontName can hang in some circumstances when using the UIAppFonts key in the Info.plist.

But because this isn't explicitly used (you're using CTFont...), you can probably get away with the easier UIAppFonts fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.