View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000641 | Cinelerra-GG | [All Projects] Feature | public | 2023-07-23 16:41 | 2023-08-05 22:15 |
Reporter | Jacques-89 | Assigned To | PhyllisSmith | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | no change required | ||
Platform | AppImage | OS | Ubuntu Studio | OS Version | 2304 |
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000641: Fonts dans AppImage | ||||
Description | Bonjour, 1) Pour info sous Ubuntu Studio 2304 et avec Cinelerra AppImage, il suffit de rajouter les polices dans le répertoire ~/.fonts pour qu'elle apparaisse dans Titre. (ttmkfdir plus indisponible sous Ubuntu) Merci de mettre à jour le Manuel 1) For your information under Ubuntu Studio 2304 and with AppImage of Cinelerra, if you wnt to add fonts, add files directly to ~/.fonts and you have it in the list of fonts in Title. Please update manual. 2) Comment avoir une liste de polices favories et pas toute la liste? 2) How is that possible to have only a Favorites list of fonts better than all the list? 3) Est-il possible d'avoir aussi les fichiers otf ? 3) Is that possible to have otf file in the list? Thanks and Regards Jacques-89 | ||||
Tags | No tags attached. | ||||
Finally checked into the GIT for the Manual as suggested. At the same time, I reworked the Title plugin Font section some to put the various ways to change the Fonts to be used all in 1 section. | |
@Andrew-R Glad you provided the solution using mkfontscale -- that is probably what caused my problem also. And I did not know what OTF versus TTF was so you proved that it worked. I will try to clear up some of the confusion in the manual about adding different fonts. Thanks. I will mark this resolved in a week or so just to make sure Jacques has problems with his specific implementaion. |
|
@PhyllisSmith ah, no need for source hacks! mkfontscale /usr/share/fonts/OTF (as root, but guess if you use custom font folder in user home directory it will work as normal user too) and then BC_FONT_PATH=":/usr/share/fonts/OTF" cin |
|
so, starting cingg like this BC_FONT_PATH=":/usr/share/fonts/OTF" cin I sadly can't see only subset of all fonts (OTF) but there in cinelerra-5.1/guicast/bcresources.C I can see (be searching for BC_FONT_PATH) // Load all the fonts from fontconfig FcPattern *pat; FcFontSet *fs; FcObjectSet *os; FcChar8 *family, *file, *foundry, *style, *format; int slant, spacing, width, weight; int force_style = 0; // if you want limit search to TrueType put 1 int limit_to_trutype = 1; FcConfig *config; int i; char tmpstring[BCTEXTLEN]; and a bit later for (i = 0; fs && i < fs->nfont; i++) { FcPattern *font = fs->fonts[i]; force_style = 0; fcPatternGetString(font, FC_FONTFORMAT, 0, &format); //on this point you can limit font search if(limit_to_trutype && strcmp((char *)format, "TrueType")) continue; Now I run fc-scan utility like this fc-scan /usr/share/fonts/ttf/ | grep fontformat fontformat: "TrueType"(s) fontformat: "TrueType"(s) [a lot more] fc-scan /usr/share/fonts/OTF/ | grep fontformat fontformat: "CFF"(s) fontformat: "CFF"(s) fontformat: "CFF"(s) so may be logically add this "CFF" string to this condition too, like if(limit_to_trutype && ( strcmp((char *)format, "TrueType") ||strcmp((char *)format, "CFF") ) ) ? I'll try this on my termux version ... |
|
@Jacques-89 2) How can I have a list of favorite fonts and not the whole list? Works already with AppImage: export BC_FONT_PATH=:/usr/share/fonts for example. The ":" removes all of the fonts including the CinGG defaults and as an example the "/usr/share/fonts" adds those. BUT, CinGG will only load the fonts in that directory IF they are of the expected format (which I am not sure what that is). So, in my case, I have at least 105 font types in /usr/share/fonts, but only 3 of liberation-mono , liberation-sans, liberation-serif actually got loaded. Is this what @Andrew-R is referencing? Thank goodness for the manual as there are so many features that I forget about. Maybe this section in the manual concerning adding fonts should be more together. |
|
@Jacques-89 1) Thanks for passing this along. I will update the manual as you recommended. 2) DeepL translation: How can I have a list of favorite fonts and not the whole list? (Deleting 642 which is a duplicate) |
|
> if you wnt to add fonts, add files directly to ~/.fonts and you have it in the list of fonts in Title. Please update manual. .. I think font list using .fonts in user directory folder actually fontconfig feature? > is that possible to have only a Favorites list of fonts better than all the list? But so far I have no idea how to filter/manipulate those lists in c++ ... As far as I understad this request is for manual "favorites" FONT list in CinGG ? > Is that possible to have otf file in the list? As long as OTF supported by freetype I hope yes, unless there is font extension filter string passed down to fontconfig/freetype ... |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2023-07-23 16:41 | Jacques-89 | New Issue | |
2023-07-23 17:25 | Andrew-R | Note Added: 0005539 | |
2023-07-23 17:48 | PhyllisSmith | Assigned To | => PhyllisSmith |
2023-07-23 17:48 | PhyllisSmith | Status | new => acknowledged |
2023-07-23 17:48 | PhyllisSmith | Note Added: 0005540 | |
2023-07-23 20:55 | PhyllisSmith | Note Added: 0005542 | |
2023-07-23 23:51 | Andrew-R | Note Added: 0005543 | |
2023-07-24 00:36 | Andrew-R | Note Added: 0005544 | |
2023-07-24 01:13 | PhyllisSmith | Note Edited: 0005542 | View Revisions |
2023-07-25 15:53 | PhyllisSmith | Note Added: 0005545 | |
2023-08-05 22:15 | PhyllisSmith | Status | acknowledged => closed |
2023-08-05 22:15 | PhyllisSmith | Resolution | open => no change required |
2023-08-05 22:15 | PhyllisSmith | Note Added: 0005546 |