Code Monkey home page Code Monkey logo

Comments (11)

raulriera avatar raulriera commented on July 1, 2024

Hi,

Can you please try the master version (either by downloading the code or using Swift Package Manager) and let me know if the problem persists?

from textfieldeffects.

iOSDevFin avatar iOSDevFin commented on July 1, 2024

I have the same issue. I updated my Podfile to

pod 'TextFieldEffects', :git => 'https://github.com/raulriera/TextFieldEffects.git', :branch => 'master'

But it's ignoring any font settings on the textfield. Can you please fix that?

from textfieldeffects.

raulriera avatar raulriera commented on July 1, 2024

If the code in master is not fixing it, a PR is very welcome. I can't seem to reproduce that problem

from textfieldeffects.

MrPereir4 avatar MrPereir4 commented on July 1, 2024

What is PR???

from textfieldeffects.

raulriera avatar raulriera commented on July 1, 2024

PR = Pull Request, when you contribute code using this website Github

from textfieldeffects.

mprey avatar mprey commented on July 1, 2024

Having the same issue even on latest master branch

from textfieldeffects.

Majituteniyazov avatar Majituteniyazov commented on July 1, 2024

@raulriera please help to solve this problem. I'm on latest master branch. I'm using HoshiTextField and system font is not standard font

from textfieldeffects.

raulriera avatar raulriera commented on July 1, 2024

Could someone elaborate more on the problem? I can't do anything if I don't see what is wrong, what you are doing, which branch, swift, Xcode, etc. And most importantly, make sure the demo project doesn't reflect the problem you are describing

Screen Shot 2019-11-15 at 9 46 47 AM

from textfieldeffects.

dterekhov avatar dterekhov commented on July 1, 2024

Hello guys!
I use AkiraTextField type only so I will show an example on it.

AkiraTextField .swift
This function get in parameter for example native ".SFUI-Regular" but returns "Times New Roman" that looks not so nice in my opinion.

private func placeholderFontFromFont(_ font: UIFont) -> UIFont! {
     let smallerFont = UIFont(name: font.fontName, size: font.pointSize * placeholderFontScale)
     return smallerFont
}

I use Storyboard with added AkiraTextField on it.

User Defined Runtime Attributes setup like that:
borderColor = UIColor.clear
placeholderColor = UIColor.white
placeholderFontScale = 0.85

Maybe it can be helpful to debug this edge case.

from textfieldeffects.

edwardkunz avatar edwardkunz commented on July 1, 2024

@raulriera Having the same font issue and I think it has something to do with iOS 13 or XCode 11.2.
Maybe it is related to this: https://stackoverflow.com/questions/58706570/how-can-i-find-the-source-of-this-font-related-coretext-warning-in-ios13

Error in the log:

CoreText note: Client requested name ".SFUI-Regular", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[UIFont systemFontOfSize:].

from textfieldeffects.

raulriera avatar raulriera commented on July 1, 2024

No one has confirmed that this happens in the demo project, can you please verify it there before commenting here? I can't reproduce the issues you are commenting

Screen Shot 2019-12-07 at 12 09 52 PM

from textfieldeffects.

Related Issues (20)

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.