Comments (6)
I have figured out the issue I was having and thought I would share it here in case anyone else runs into the same issue.
In addition to iVim, I am using a program called AnyFont to install fonts in iOS that I can use in any program. The fonts that were not working in iVim were installed via AnyFont as Profiles (viewable in the Settings app under General > Profiles).
I contacted one of the creators of one of the fonts I was trying to install and communicated my issue. He was kind enough to send me the next pre-release version of the font which I installed and tested in iVim. I’m not sure why it would make any difference, but because the new version of the font was not installed as a Profile, it worked. I didn’t realize this was the issue at the time.
Earlier today, I installed the pre-release version of that font as an iOS system font via Any Font. After I restarted my iPad and opened iVim, I noticed that the font wasn’t working anymore. This led me to start experimenting with the Profiles. I deleted the profiles for the two fonts I mentioned before that were giving me trouble, then I installed them into iVim. And they worked.
For iVim users who are using AnyFont to install custom fonts as iOS system fonts, you may run into an issue using some fonts installed as Profiles AND imported into iVim. This workaround worked for me, and may work for you:
- Open the Settings app and go to the General Section
- Open Profiles
- Find the Profile that matches the font you are having trouble installing in iVim, and delete it
- Return to iVim and attempt to use the font (:help ifont for instructions)
You should find that whereas before any attempts to switch to the font resulted in no visual change in the UI (and no error message), after deleting the profile you can switch to the font and use it as expected.
from ivim.
I have tried all the three fonts: Camingo Code (Regular, ttf), Pragmata Pro (Regular, ttf) and Pitch (Regular, otf, test version from the official site). And they all seem working fine here.
What do you mean by "nothing happens"? What does :ifont
list look like after your attempt to switch to a font with failure? Where is the *
indicator after the failure? Was it indicating the failed font?
How do you use :ifont
to switch fonts? using the index or name? It would be better if you can provide the related lines in .vimrc
.
Thanks for the p.s., I am very glad to hear that you like iVim and it helps.
from ivim.
@terrychou What I mean by “nothing happens” is that the asterisk that identifies the selected font does not change, the font on screen does not change, and no error message is displayed. To make the situation a little clearer, I have created a video that walks through the issue. I hope it helps to illustrate the problem. It is stored on my Google Drive with a shareable link. In case you have trouble accessing it, this is how I am using the ifont
command:
First off, this is what shows up in the Available Fonts list when I enter :ifont
:
1 s SourceCodePro-Regular
2 s Courier
3 s CourierNewPSMT
4 s Menlo-Regular
*5 u CamingoCodeRegular 17.0
6 u Pitch
7 u PragmataProMono
8 u PragmataProMonoLigatures
I have tried the following commands to switch fonts using full names, partial names, and the underscore to change only the font size. These only work when selecting fonts with ID 1-5:
:ifont 1 16
- Changes the selected font to SourceCodePro-Regular at height of 16
:ifont Camingo 20
- Using a partial font name works. Changes the selected font to CamingoCode
:ifont _ 30
- Keeps the selected font but changes the size
:ifont PragmataProMono 16
- Does not change the font
:ifont 6 20
- Does not change the font
from ivim.
Could you share the fonts with problem? Because it looks wrong in your video but I don't see that with the ones I have, I need to test them on my device to see whether it is the problem with the fonts or not.
from ivim.
I would be violating the license agreement by sharing them. I will try to reproduce the issue with some open source fonts this week and get back with you.
from ivim.
By "share", I meant that maybe you could "provide" the fonts in question for the testing purpose only. I never mean to have or use them myself. To avoid this technical problem becoming a legal one, I think I should stop here. Thanks for your feedback.
from ivim.
Related Issues (20)
- Hard to type slash and question mark, key to close to screen edge HOT 2
- Screen stretch when repositioning cursor
- Copy and paste into iVim HOT 1
- Reading directories in the cloud HOT 2
- Consider a NeoVIm iOS port?
- Update python3 version?
- :echo system('uniq', ["a", "a", "b"]) —> crash HOT 2
- :ipreview markdown themes?
- findfile(‘filename’, ‘**’) does not work in iCloud directories HOT 1
- Seabass5vg8
- Plugin for AppleScript?
- linespace not working
- Some fonts not rendered correctly
- Font Not Saving
- Light mode doesn’t work
- Remote authentication required but no callback set HOT 3
- Cannot find “ivim” in the share menu after updating to iPadOS 17.03 HOT 2
- External key combination unexpectedly exits iVim
- ipreview issues with some characters
- major regression bug in iOS 17 : tap causes keyboard animation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ivim.