Problem with interrupting Arabic letters

Mohammed Qasim2 years ago

Greetings to all
Is there a solution to the problem of broken Arabic letters? Note that I made a lot of modifications, especially in the pbf font file
If there is a solution please help me
Link for photo

Anton Tananaev2 years ago

Do you want to share details on what modification you made so far?

Mohammed Qasim2 years ago

Details related to programming modifications in JavaScript?

Anton Tananaev2 years ago

Note that I made a lot of modifications, especially in the pbf font file

I'm talking about this.

Mohammed Qasim2 years ago

I downloaded a lot of files, for example:
Link name & by "fontnik" in ubuntu ! but I don't have enough experience .

Anton Tananaev2 years ago

If you just want someone to write you a step by step, it probably won't happen. If you want some help to maybe point you in the right direction, you should share all the details. You downloaded a lot of files and what? What did you modify? What worked / didn't work?

Mohammed Qasim2 years ago

the first

    r = n.find((i) => i.includes("Regular"));
    if (r) return [r];
    const a = n.find(Boolean);
    return a ? [a] : ["arial-unicode-ms-regular"];
  };

the second

            "text-direction": {
              type: "right-to-left",
              default: "",
              tokens: !0,
              expression: { interpolated: !1, parameters: ["zoom", "feature"] },
              "property-type": "constant",
            },

the third

"text-direction": new Yo(Be.layout_line["text-direction"]),

the fourth

"text-direction": "rtl",

I also did an experiment

      paint: { "text-direction": "rtl" ,"text-halo-color": "white", "text-halo-width": 1 },

Everything didn't work

Mohammed Qasim2 years ago

?

Mohammed Qasima year ago

I created a lot of font PBF files && I tried to search using ((webgl2 && 2d)) && more . I'm not telling you to explain to me step by step, but just tell me where I work.
You all the appreciation and respect .

Mohammed Qasima year ago
 layout_symbol: {
                    "text-direction": {
                        type: "enum",
                        values: {
                            rtl: "rtl",
                            ltr: "ltr",
                        },
                        requires: ["text-font"],
                    },}

Does this work?

Mohammed Qasima year ago

in console.log(" The name appears correctly in both Arabic and English ")

Mohammed Qasima year ago

how to install setRTLTextPlugin ?

Mohammed Qasima year ago
              const Fc = "deferred",
                  sd = "loading",
                  lc = "loaded";
              let sl = null,
                  fi = "unavailable",
                  Qi = null;
              const cd = function (l) {
                  l && typeof l == "string" && l.indexOf("NetworkError") > -1 && (fi = "error"), sl && sl(l)
              };

???????

Mohammed Qasima year ago

Thank you, the problem with the name appearing in Arabic has been solved
Solve the problem of the name RTL appearing: https://drive.google.com/file/d/1kDp-MBXhmkECKN1czH8Vh5lnv2bRgcTh/view?pli=1

Anton Tananaeva year ago

Please share the solution.